Handle ConnectionResetError on background thread (removed on 9bc1f64)

This commit is contained in:
Lonami Exo 2017-09-03 10:05:18 +02:00
parent 2a5d08b23d
commit fa34c4bb77

View File

@ -917,5 +917,8 @@ class TelegramClient(TelegramBareClient):
except TimeoutError:
# No problem.
pass
except ConnectionResetError:
self._logger.debug('Server disconnected us. Reconnecting...')
self.reconnect()
# endregion