From d11c47d1f4c4d46c10492609d49ea74cc74aaacd Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 16 Mar 2024 02:52:42 +0100 Subject: [PATCH] fix airplay playback --- music_assistant/server/providers/airplay/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/server/providers/airplay/__init__.py b/music_assistant/server/providers/airplay/__init__.py index 67b04858b..99471075f 100644 --- a/music_assistant/server/providers/airplay/__init__.py +++ b/music_assistant/server/providers/airplay/__init__.py @@ -691,7 +691,7 @@ async def play_media( ) airplay_player.active_stream = AirplayStreamJob(self, airplay_player) tg.create_task(airplay_player.active_stream.start(start_ntp, audio_iterator)) - if queue_item.queue_item_id != "flow": + if stream_job and queue_item.queue_item_id != "flow": stream_job.start() async def cmd_volume_set(self, player_id: str, volume_level: int) -> None: