This commit is contained in:
nex 2023-01-09 14:43:22 +00:00
parent e5d09ac385
commit 33b9df3bb0

View file

@ -399,7 +399,9 @@ class OtherCog(commands.Cog):
], ],
return_when=asyncio.FIRST_COMPLETED, return_when=asyncio.FIRST_COMPLETED,
) )
done = done or pending done_tasks = done
done = done_tasks or pending
done = pending or done_tasks
done = done.pop() done = done.pop()
result = await done result = await done
if result is not True: if result is not True: