mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix run_until_disconnected's call to disconnect
This commit is contained in:
@@ -37,7 +37,8 @@ class UpdateMethods(UserMethods):
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
self.loop.run_until_complete(self.disconnect())
|
||||
# No loop.run_until_complete; it's already syncified
|
||||
self.disconnect()
|
||||
|
||||
def on(self, event):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user