There was an error while loading. Please reload this page.
1 parent c3e9bca commit a0765a7Copy full SHA for a0765a7
1 file changed
main.go
@@ -1966,14 +1966,11 @@ func (s *Server) handleRequestSync(c *Client) {
1966
// Calculate live position
1967
currentPosition := room.State.Position
1968
elapsed := time.Now().UnixMilli() - room.State.LastUpdate
1969
- if room.State.IsPlaying || (room.Host != nil && room.HostDisconnectedAt == nil) {
+ if room.State.IsPlaying {
1970
currentPosition += elapsed
1971
}
1972
1973
responsePlaying := room.State.IsPlaying
1974
- if room.Host != nil && room.HostDisconnectedAt == nil {
1975
- responsePlaying = true
1976
- }
1977
1978
s.logger.Debug("Sync request received",
1979
zap.String("username", c.Username),
0 commit comments