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