Implement retry and fail cases in authenticator

This commit is contained in:
Lonami Exo
2018-06-07 17:20:45 +02:00
parent df895a94ab
commit f72ddbdd5a
3 changed files with 29 additions and 30 deletions

View File

@@ -105,7 +105,7 @@ class MTProtoSender:
await self._connection.connect(ip, port)
self._user_connected = True
# TODO Handle SecurityError, AssertionError, NotImplementedError
# TODO Handle SecurityError, AssertionError
if self.session.auth_key is None:
plain = MTProtoPlainSender(self._connection)
self.session.auth_key, self.session.time_offset =\