From a841030c1e7258d04bf209c3b47c66d3aa26abdb Mon Sep 17 00:00:00 2001 From: alemidev Date: Fri, 17 Dec 2021 16:41:21 +0100 Subject: [PATCH] not sure abt this err --- aiocraft/traits/runnable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiocraft/traits/runnable.py b/aiocraft/traits/runnable.py index c07bb7c..2e22a38 100644 --- a/aiocraft/traits/runnable.py +++ b/aiocraft/traits/runnable.py @@ -12,7 +12,7 @@ class Runnable: raise NotImplementedError async def _stop_wrapper(self): - done, pending = await asyncio.wait(self.stop(), FORCE_QUIT.wait(), return_when=asyncio.FIRST_COMPLETED) + done, pending = await asyncio.wait((self.stop(), FORCE_QUIT.wait()), return_when=asyncio.FIRST_COMPLETED) if FORCE_QUIT.is_set(): # means previous stop() didn't finish and user sent another SIGINT await self.stop(force=True)