From ae728cbd7977fc067b84f727d20be34a9fea86e3 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 8 Jun 2019 16:39:07 +0200 Subject: [PATCH] Update http_streamer.py fix typo --- music_assistant/modules/http_streamer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/music_assistant/modules/http_streamer.py b/music_assistant/modules/http_streamer.py index 5009ed2a..0811ae9a 100755 --- a/music_assistant/modules/http_streamer.py +++ b/music_assistant/modules/http_streamer.py @@ -258,15 +258,15 @@ class HTTPStreamer(): # and it helps a bit in the quest to follow where we are in the queue while buffer.qsize() > 1 and not cancelled.is_set(): await asyncio.sleep(1) - # break out the loop if the http session is cancelled - if cancelled.is_set(): - break if cur_chunk == 1: # report start stream of current queue index self.mass.event_loop.create_task(self.mass.player.player_queue_stream_move(player_id, queue_index)) # end of the track reached LOGGER.info("Finished Streaming queue track: %s - %s" % (track_id, queue_track.name)) queue_index += 1 + # break out the loop if the http session is cancelled + if cancelled.is_set(): + break # end of queue reached, pass last fadeout bits to final output if last_fadeout_data: -- 2.34.1