mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 11:40:11 +03:00
Autoreconnect from _invoke fix
Not tested, but seems to work. Investigate first.
This commit is contained in:
parent
f49208f961
commit
1b6bb6b3ab
|
@ -499,10 +499,7 @@ class TelegramBareClient:
|
|||
else:
|
||||
while self._user_connected and not self._reconnect():
|
||||
sleep(0.1) # Retry forever until we can send the request
|
||||
|
||||
finally:
|
||||
if sender != self._sender:
|
||||
sender.disconnect()
|
||||
return None
|
||||
|
||||
try:
|
||||
raise next(x.rpc_error for x in requests if x.rpc_error)
|
||||
|
|
Loading…
Reference in New Issue
Block a user