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:
Lonami Exo 2018-10-21 16:02:13 +02:00
parent c248a102dc
commit 0755421fc2

View File

@ -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