fix typo
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 21 Aug 2024 15:18:28 +0000 (17:18 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 21 Aug 2024 15:18:28 +0000 (17:18 +0200)
music_assistant/server/helpers/audio.py

index 91bbee057f656e54ed5be1e902e2039fe9009dbb..ec2d3f67afc1cf0881bff3e88b9b8d59c9a601b0 100644 (file)
@@ -191,7 +191,7 @@ class FFMpeg(AsyncProcess):
         except Exception as err:
             # make sure we dont swallow any exceptions and we bail out
             # once our audio source fails.
-            if isinstance(err, asyncio.CancelledError):
+            if not isinstance(err, asyncio.CancelledError):
                 self.logger.exception(err)
                 await self.close(True)