Verified Commit b4324888 authored by Fabio Manganiello's avatar Fabio Manganiello
Browse files

Prevent null pointer on music.spotify backend stop if the Librespot process...

Prevent null pointer on music.spotify backend stop if the Librespot process has already been terminated
parent 65d4740c
......@@ -204,7 +204,8 @@ class MusicSpotifyBackend(Backend, SpotifyMixin):
while not self.should_stop():
try:
self._librespot_proc.wait(timeout=1.0)
if self._librespot_proc:
self._librespot_proc.wait(timeout=1.0)
except subprocess.TimeoutExpired:
pass
except Exception as e:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment