From: Marcel van der Veldt Date: Mon, 28 Dec 2020 14:55:54 +0000 (+0100) Subject: small follow up X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=e4db69409525bd70a1547ccef662dc43f8160b5a;p=music-assistant-server.git small follow up --- diff --git a/music_assistant/helpers/process.py b/music_assistant/helpers/process.py index e2e57151..1bcfa27b 100644 --- a/music_assistant/helpers/process.py +++ b/music_assistant/helpers/process.py @@ -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: