mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03: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:
parent
c248a102dc
commit
0755421fc2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user