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/94f38bb41b8a779a1a9345998603fe6b536511c3?ds=sidebyside;hp=bb49ec12c34aa247c5a972695a318324fffa15ca 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: