Don't .disconnect() on FloodWaitError

Since other requests can still be invoked, it makes no
sense to call .disconnect().
This commit is contained in:
Lonami Exo 2017-10-13 09:59:37 +02:00
parent bec5f9fb89
commit 9cf5506ee4

View File

@ -537,8 +537,6 @@ class TelegramBareClient:
except FloodWaitError as e:
if e.seconds > self.session.flood_sleep_threshold | 0:
sender.disconnect()
self.disconnect()
raise
self._logger.debug(