forked from platypush/platypush
Prevent null pointer on music.spotify backend stop if the Librespot process has already been terminated
This commit is contained in:
parent
65d4740cd7
commit
b432488876
1 changed files with 2 additions and 1 deletions
|
@ -204,6 +204,7 @@ class MusicSpotifyBackend(Backend, SpotifyMixin):
|
||||||
|
|
||||||
while not self.should_stop():
|
while not self.should_stop():
|
||||||
try:
|
try:
|
||||||
|
if self._librespot_proc:
|
||||||
self._librespot_proc.wait(timeout=1.0)
|
self._librespot_proc.wait(timeout=1.0)
|
||||||
except subprocess.TimeoutExpired:
|
except subprocess.TimeoutExpired:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue