mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00: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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user