mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 19:00:21 +03:00
Fix non-ending awaits due to requests not being resent on reconnect
This commit is contained in:
parent
58aadce5ba
commit
4be248932d
|
@ -304,6 +304,9 @@ class MTProtoSender:
|
||||||
for retry in range(1, retries + 1):
|
for retry in range(1, retries + 1):
|
||||||
try:
|
try:
|
||||||
await self._connect()
|
await self._connect()
|
||||||
|
for m in self._pending_messages.values():
|
||||||
|
self._send_queue.put_nowait(m)
|
||||||
|
|
||||||
break
|
break
|
||||||
except ConnectionError:
|
except ConnectionError:
|
||||||
__log__.info('Failed reconnection retry %d/%d', retry, retries)
|
__log__.info('Failed reconnection retry %d/%d', retry, retries)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user