From f06a13326f39092ef84cf098b948b0a1285fdce1 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Thu, 31 Oct 2019 22:05:58 +0100 Subject: [PATCH] Update http_streamer.py --- music_assistant/http_streamer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/http_streamer.py b/music_assistant/http_streamer.py index b4ea84dd..22842ac7 100755 --- a/music_assistant/http_streamer.py +++ b/music_assistant/http_streamer.py @@ -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 -- 2.34.1