Skip to content

Commit

Permalink
fix: py38
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Sep 30, 2024
1 parent 36fc530 commit 4623300
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aiohappyeyeballs/staggered.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ def _on_completion(
timer.cancel()

finally:
# If there are any tasks left, cancel them
# since we either have a winner or a KeyboardInterrupt
# or SystemExit.
for task in tasks:
task.cancel()

Expand Down

0 comments on commit 4623300

Please sign in to comment.