mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Fix step could complete all at once
This commit is contained in:
@@ -144,6 +144,7 @@ class Sender:
|
|||||||
return_when=FIRST_COMPLETED,
|
return_when=FIRST_COMPLETED,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if pending:
|
||||||
for task in pending:
|
for task in pending:
|
||||||
task.cancel()
|
task.cancel()
|
||||||
await asyncio.wait(pending)
|
await asyncio.wait(pending)
|
||||||
|
Reference in New Issue
Block a user