Chore: extend audio timeout to 3 seconds
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 25 Feb 2025 16:17:25 +0000 (17:17 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 25 Feb 2025 16:17:25 +0000 (17:17 +0100)
music_assistant/providers/spotify/__init__.py

index 0b76dc24e460c7d927fa77bae50b5c5a221ab50a..e8588120a2afe31e3164d77a96b6e8f13429391c 100644 (file)
@@ -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")