mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-07 20:42:32 +00:00
Fix run_until_disconnected's call to disconnect
This commit is contained in:
@@ -550,7 +550,8 @@ class AuthMethods(MessageParseMethods, UserMethods):
|
||||
return await self.start()
|
||||
|
||||
def __exit__(self, *args):
|
||||
self.disconnect() # It's also syncified, like start()
|
||||
# No loop.run_until_complete; it's already syncified
|
||||
self.disconnect()
|
||||
|
||||
async def __aexit__(self, *args):
|
||||
await self.disconnect()
|
||||
|
Reference in New Issue
Block a user