]> git.treefish.org Git - mtxbot.git/blobdiff - src/mtxbot.py
Fix presence shutdown
[mtxbot.git] / 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 )
 
         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:
 
         for task in done:
             try: