Skip to content

Commit

Permalink
Fix the exception when using the happy_eyeballs_delay parameter in op…
Browse files Browse the repository at this point in the history
…en_connection
  • Loading branch information
rruuaanng committed Sep 22, 2024
1 parent 782217f commit 7775940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/asyncio/staggered.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def run_one_coro(previous_failed) -> None:
if i != this_index:
t.cancel()

first_task = loop.create_task(run_one_coro(None))
first_task = loop.create_task(run_one_coro(locks.Event()))
running_tasks.append(first_task)
try:
# Wait for a growing list of tasks to all finish: poor man's version of
Expand Down

0 comments on commit 7775940

Please sign in to comment.