From c26e1d302de83ec7569f3c44593f11ed3a790695 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 17 Jun 2022 13:55:51 +0200 Subject: [PATCH] comment --- music_assistant/controllers/streams.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/music_assistant/controllers/streams.py b/music_assistant/controllers/streams.py index 3dce2d59..c60d7dcb 100644 --- a/music_assistant/controllers/streams.py +++ b/music_assistant/controllers/streams.py @@ -179,8 +179,6 @@ class StreamsController: is_alert: bool, ) -> QueueStream: """Start running a queue stream.""" - # cleanup stale previous queue tasks - # generate unique stream url stream_id = uuid4().hex # determine the pcm details based on the first track we need to stream @@ -228,6 +226,7 @@ class StreamsController: is_alert=is_alert, autostart=True, ) + # cleanup stale previous queue tasks self.mass.create_task(self.cleanup_stale) return stream -- 2.34.1