Fix client reconnection not actually working

This commit is contained in:
Lonami Exo 2017-09-11 11:38:36 +02:00
parent a2fdd4b196
commit 188b1c8816

View File

@ -958,6 +958,8 @@ class TelegramClient(TelegramBareClient):
# Do NOT attempt reconnecting unless the connection was
# finished by the user -> ._recv_thread is None
self._logger.debug('Server disconnected us. Reconnecting...')
self._recv_thread = None # Not running anymore
self.reconnect()
return
# endregion