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