mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix update loop should not disconnect causing race condition
When starting the client, on phone migrations, it would disconnect twice right after connecting which would trigger a not-connected error.
This commit is contained in:
@@ -218,7 +218,6 @@ class UpdateMethods(UserMethods):
|
||||
except asyncio.TimeoutError:
|
||||
pass
|
||||
except asyncio.CancelledError:
|
||||
self.disconnect()
|
||||
return
|
||||
except Exception as e:
|
||||
continue # Any disconnected exception should be ignored
|
||||
|
Reference in New Issue
Block a user