X-Git-Url: http://git.treefish.org/~alex/mtxbot.git/blobdiff_plain/bb49ec12c34aa247c5a972695a318324fffa15ca..94f38bb41b8a779a1a9345998603fe6b536511c3:/src/mtxbot.py 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: