From 91024f68ebfc03216eca8a52ec687934016f6901 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Tue, 15 Oct 2019 08:31:08 +0200 Subject: [PATCH] Update http_streamer.py --- music_assistant/http_streamer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/music_assistant/http_streamer.py b/music_assistant/http_streamer.py index 4810e9df..3dacd242 100755 --- a/music_assistant/http_streamer.py +++ b/music_assistant/http_streamer.py @@ -66,8 +66,7 @@ class HTTPStreamer(): buf_queue.task_done() except (asyncio.CancelledError, asyncio.TimeoutError): cancelled.set() - # wait for result - bg_task.result() + # wait for bg_task await asyncio.sleep(1) del buf_queue raise asyncio.CancelledError() -- 2.34.1