mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Handle ConnectionResetError on background thread (removed on 9bc1f64
)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user