Skip to content

Commit

Permalink
final (temporary) fix for kodi/vlc players for now
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jul 29, 2022
1 parent cdf65b1 commit 2fe3c50
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions music_assistant/controllers/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async def serve_queue_stream(self, request: web.Request):
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
Expand Down Expand Up @@ -478,9 +478,6 @@ async def writer():
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.
Expand Down

0 comments on commit 2fe3c50

Please sign in to comment.