]> git.treefish.org Git - mtxbot.git/commitdiff
Fix presence shutdown master
authorAlexander Schmidt <alex@treefish.org>
Thu, 25 Nov 2021 20:58:51 +0000 (21:58 +0100)
committerAlexander Schmidt <alex@treefish.org>
Thu, 25 Nov 2021 20:58:51 +0000 (21:58 +0100)
src/mtxbot.py

index 573a5f22310cd2a07c82c7847a95797df7b22d37..011341f85b7204a6674a886112729c1da503d16f 100755 (executable)
@@ -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: