From e4db69409525bd70a1547ccef662dc43f8160b5a Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 28 Dec 2020 15:55:54 +0100 Subject: [PATCH] small follow up --- music_assistant/helpers/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.34.1