fix start restart bugs

This commit is contained in:
2025-06-18 12:29:13 +02:00
parent efc3870963
commit c7926724e2
3 changed files with 38 additions and 16 deletions

View File

@@ -336,10 +336,7 @@ class Streamer():
self.is_streaming = False
if self.task is not None:
self.task.cancel()
try:
await self.task
except asyncio.CancelledError:
pass
self.task = None
# Close audio inputs (await to ensure ALSA devices are released)