From 82bf6095ae3b532896aa11e3826707d33e3da60e Mon Sep 17 00:00:00 2001 From: Levin Rickert Date: Sun, 24 Sep 2017 12:37:40 +0200 Subject: [PATCH] Fix spontaneous high CPU usage by Spotify `return_after` set to -1 can cause spontaneous high CPU usage by the Spotify client. Setting `return_after` to 0 fixes this. Timeout remains disabled. --- spotify_remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotify_remote.py b/spotify_remote.py index 0164ad2..490ea8a 100755 --- a/spotify_remote.py +++ b/spotify_remote.py @@ -142,7 +142,7 @@ def handshake(self): def version(self): return self._call("/service/version.json", service="remote") - def status(self, return_after=-1, return_on=DEFAULT_RETURN_ON): + def status(self, return_after=0, return_on=DEFAULT_RETURN_ON): return self._call("/remote/status.json", authed=True, returnafter=return_after,