mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 13:14:31 +03:00
Fix client reconnection not actually working
This commit is contained in:
parent
a2fdd4b196
commit
188b1c8816
|
@ -958,6 +958,8 @@ class TelegramClient(TelegramBareClient):
|
||||||
# Do NOT attempt reconnecting unless the connection was
|
# Do NOT attempt reconnecting unless the connection was
|
||||||
# finished by the user -> ._recv_thread is None
|
# finished by the user -> ._recv_thread is None
|
||||||
self._logger.debug('Server disconnected us. Reconnecting...')
|
self._logger.debug('Server disconnected us. Reconnecting...')
|
||||||
|
self._recv_thread = None # Not running anymore
|
||||||
self.reconnect()
|
self.reconnect()
|
||||||
|
return
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
|
|
Loading…
Reference in New Issue
Block a user