mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-21 20:46:39 +00: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:
|
except TimeoutError:
|
||||||
# No problem.
|
# No problem.
|
||||||
pass
|
pass
|
||||||
|
except ConnectionResetError:
|
||||||
|
self._logger.debug('Server disconnected us. Reconnecting...')
|
||||||
|
self.reconnect()
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user