mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-24 16:24:15 +03:00
Remove unnecessary .disconnect() from ._invoke() (#356)
This commit is contained in:
parent
0e1249c833
commit
050cd95d32
|
@ -499,10 +499,7 @@ class TelegramBareClient:
|
||||||
else:
|
else:
|
||||||
while self._user_connected and not self._reconnect():
|
while self._user_connected and not self._reconnect():
|
||||||
sleep(0.1) # Retry forever until we can send the request
|
sleep(0.1) # Retry forever until we can send the request
|
||||||
|
return None
|
||||||
finally:
|
|
||||||
if sender != self._sender:
|
|
||||||
sender.disconnect()
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
raise next(x.rpc_error for x in requests if x.rpc_error)
|
raise next(x.rpc_error for x in requests if x.rpc_error)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user