mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-11 03:56:36 +03:00
Don't .disconnect() on FloodWaitError
Since other requests can still be invoked, it makes no sense to call .disconnect().
This commit is contained in:
parent
bec5f9fb89
commit
9cf5506ee4
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user