mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +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:
|
except FloodWaitError as e:
|
||||||
if e.seconds > self.session.flood_sleep_threshold | 0:
|
if e.seconds > self.session.flood_sleep_threshold | 0:
|
||||||
sender.disconnect()
|
|
||||||
self.disconnect()
|
|
||||||
raise
|
raise
|
||||||
|
|
||||||
self._logger.debug(
|
self._logger.debug(
|
||||||
|
Reference in New Issue
Block a user