From 8ce70ecfb7730450a4943951ee9af360820cd45f Mon Sep 17 00:00:00 2001 From: NimaQu Date: Mon, 10 Oct 2022 17:07:58 -0500 Subject: [PATCH] fix warning: coroutine was never awaited --- Timer/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Timer/__init__.py b/Timer/__init__.py index 5da5b41..810813f 100644 --- a/Timer/__init__.py +++ b/Timer/__init__.py @@ -17,5 +17,6 @@ async def wait(self): def stop(self): try: self.task.cancel() + self.callback.close() except asyncio.CancelledError: pass \ No newline at end of file