From: Marcel van der Veldt Date: Fri, 29 Jul 2022 13:36:18 +0000 (+0200) Subject: final (temporary) fix for kodi/vlc players for now X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=79e9c811a593ca4c59884f3314a4545c599e4541;p=music-assistant-server.git final (temporary) fix for kodi/vlc players for now --- 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.