mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 13:14:31 +03:00
Handle ConnectionResetError on background thread (removed on 9bc1f64
)
This commit is contained in:
parent
2a5d08b23d
commit
fa34c4bb77
|
@ -917,5 +917,8 @@ class TelegramClient(TelegramBareClient):
|
|||
except TimeoutError:
|
||||
# No problem.
|
||||
pass
|
||||
except ConnectionResetError:
|
||||
self._logger.debug('Server disconnected us. Reconnecting...')
|
||||
self.reconnect()
|
||||
|
||||
# endregion
|
||||
|
|
Loading…
Reference in New Issue
Block a user