From: Alexander Schmidt Date: Thu, 25 Nov 2021 20:58:51 +0000 (+0100) Subject: Fix presence shutdown X-Git-Url: http://git.treefish.org/~alex/mtxbot.git/commitdiff_plain?ds=inline Fix presence shutdown --- 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: