From 94f38bb41b8a779a1a9345998603fe6b536511c3 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Thu, 25 Nov 2021 21:58:51 +0100 Subject: [PATCH] Fix presence shutdown --- src/mtxbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mtxbot.py b/src/mtxbot.py index 573a5f2..011341f 100755 --- a/src/mtxbot.py +++ b/src/mtxbot.py @@ -36,8 +36,8 @@ async def main(): done, pending = await asyncio.wait( presence_tasks, return_when = asyncio.FIRST_EXCEPTION ) - for task in presence_tasks: - task.stop() + for presence in presences: + presence.stop() for task in done: try: -- 2.39.5