Update http_streamer.py
authormarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Thu, 31 Oct 2019 21:05:58 +0000 (22:05 +0100)
committermarcelveldt <marcelvanderveldt@MacBook-Silvia.local>
Thu, 31 Oct 2019 21:05:58 +0000 (22:05 +0100)
music_assistant/http_streamer.py

index b4ea84dd878843f82327cdf7f6ffbcbbecc12983..22842ac72ea0a7db0af3c7efdcd90f9fa6ea1e68 100755 (executable)
@@ -319,7 +319,7 @@ class HTTPStreamer():
         # yield chunks from stdout
         # we keep 1 chunk behind to detect end of stream properly
         bytes_sent = 0
-        while True:
+        while process.poll() == None:
             if cancelled.is_set():
                 # http session ended
                 # send terminate and pick up left over bytes