From e99998afb01320cf74dd2b1807a9f8f319d0bff9 Mon Sep 17 00:00:00 2001 From: Denis Shulyaka Date: Mon, 21 Aug 2023 21:51:34 +0300 Subject: [PATCH] Fix deadlock on process termination --- rhasspy3/program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhasspy3/program.py b/rhasspy3/program.py index f32f0b8..36cce2d 100644 --- a/rhasspy3/program.py +++ b/rhasspy3/program.py @@ -32,7 +32,7 @@ async def __aexit__(self, exc_type, exc, tb): try: if self.proc.returncode is None: self.proc.terminate() - await self.proc.wait() + await self.proc.communicate() except ProcessLookupError: # Expected when process has already exited pass