From 79e9c811a593ca4c59884f3314a4545c599e4541 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 29 Jul 2022 15:36:18 +0200 Subject: [PATCH] final (temporary) fix for kodi/vlc players for now --- music_assistant/controllers/streams.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/music_assistant/controllers/streams.py b/music_assistant/controllers/streams.py index 3ed542fc..5fba3b0c 100644 --- a/music_assistant/controllers/streams.py +++ b/music_assistant/controllers/streams.py @@ -192,7 +192,7 @@ class StreamsController: client_id += uuid4().hex elif ( queue_stream.all_clients_connected.is_set() - and queue_stream.total_seconds_streamed + and queue_stream.queue.player.elapsed_time > 2 ): self.logger.debug( "Got stream request for running stream: %s, assuming next", stream_id @@ -478,9 +478,6 @@ class QueueStream: self.done.set() return self.logger.debug("%s clients connected", len(self.connected_clients)) - # TEMP fix - to remove in stream refactor - # some clients connect twice (browser, vlc, kodi) and we are not prepared for that - await asyncio.sleep(0.2) self.streaming_started = time() # Read bytes from final output and send chunk to child callback. -- 2.34.1