mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-03 20:03:27 +03:00
Fix step could complete all at once
This commit is contained in:
parent
2541c409e2
commit
5f4470dd57
|
@ -144,6 +144,7 @@ class Sender:
|
|||
return_when=FIRST_COMPLETED,
|
||||
)
|
||||
|
||||
if pending:
|
||||
for task in pending:
|
||||
task.cancel()
|
||||
await asyncio.wait(pending)
|
||||
|
|
Loading…
Reference in New Issue
Block a user