From a823bb3e83cd70a30e67a00292697f0a357e3aa2 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 25 Feb 2025 17:17:25 +0100 Subject: [PATCH] Chore: extend audio timeout to 3 seconds --- music_assistant/providers/spotify/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/providers/spotify/__init__.py b/music_assistant/providers/spotify/__init__.py index 0b76dc24..e8588120 100644 --- a/music_assistant/providers/spotify/__init__.py +++ b/music_assistant/providers/spotify/__init__.py @@ -610,7 +610,7 @@ class SpotifyProvider(MusicProvider): # get first chunk with timeout, to catch the issue where librespot is not starting # which seems to happen from time to time (but rarely) try: - chunk = await asyncio.wait_for(librespot_proc.read(64000), timeout=2) + chunk = await asyncio.wait_for(librespot_proc.read(64000), timeout=3) yield chunk except TimeoutError: raise AudioError("No audio received from librespot within timeout") -- 2.34.1