small follow up
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 28 Dec 2020 14:55:54 +0000 (15:55 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 28 Dec 2020 14:55:54 +0000 (15:55 +0100)
music_assistant/helpers/process.py

index e2e57151b83ff73dc3c5562e5a9aa822dda4999e..1bcfa27bfa6282b2498766bcc932bc641868121e 100644 (file)
@@ -59,7 +59,7 @@ class AsyncProcess:
         self, chunksize: int = DEFAULT_CHUNKSIZE
     ) -> AsyncGenerator[bytes, None]:
         """Yield chunks from the process stdout. Generator."""
-        while not self._cancelled:
+        while True:
             chunk = await self.read(chunksize)
             yield chunk
             if len(chunk) < chunksize: