Use ApplyUpdates in user stream to ensure we don't go backwards

This commit is contained in:
Neil Alexander 2021-01-12 14:47:47 +00:00
parent ec1b017906
commit b1770c5d75
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -89,10 +89,9 @@ func (s *UserDeviceStream) Broadcast(pos types.StreamingToken) {
s.lock.Lock()
defer s.lock.Unlock()
s.pos = pos
s.pos.ApplyUpdates(pos)
close(s.signalChannel)
s.signalChannel = make(chan struct{})
}