Skip to content

Commit

Permalink
Spotify: Fix error leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
cschomburg committed Dec 29, 2017
1 parent 7f39f8e commit fb9bbbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/spotify/service.go
Expand Up @@ -139,6 +139,8 @@ func (s *Service) readLoop() {
state, err := s.Spotify.PlayerStateOpt(opt)
if err != nil {
s.Log("err/internal", err.Error())
time.Sleep(5 * time.Minute)
return
}

dur := s.AdvanceState(*state)
Expand Down

0 comments on commit fb9bbbf

Please sign in to comment.