From: marcelveldt Date: Sun, 20 Oct 2019 13:27:32 +0000 (+0200) Subject: Update http_streamer.py X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=659481894c0c127fc57fbc48a525fc041428e289;p=music-assistant-server.git Update http_streamer.py --- diff --git a/music_assistant/http_streamer.py b/music_assistant/http_streamer.py index f25325e0..8261b7b2 100755 --- a/music_assistant/http_streamer.py +++ b/music_assistant/http_streamer.py @@ -68,8 +68,7 @@ class HTTPStreamer(): self.__stream_single, player, queue_item, resp, cancelled) # let the streaming begin! try: - while not cancelled.is_set(): - await asyncio.sleep(0.1) + await asyncio.gather(bg_task) except (asyncio.CancelledError): LOGGER.warning("stream cancelled") cancelled.set()