mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-09 08:00:53 +03:00
Fix step could complete all at once
This commit is contained in:
parent
2541c409e2
commit
5f4470dd57
|
@ -144,9 +144,10 @@ class Sender:
|
||||||
return_when=FIRST_COMPLETED,
|
return_when=FIRST_COMPLETED,
|
||||||
)
|
)
|
||||||
|
|
||||||
for task in pending:
|
if pending:
|
||||||
task.cancel()
|
for task in pending:
|
||||||
await asyncio.wait(pending)
|
task.cancel()
|
||||||
|
await asyncio.wait(pending)
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
if recv_req in done:
|
if recv_req in done:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user