Skip to content

Commit

Permalink
Filter all handles to avoid re-waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Aug 14, 2023
1 parent eccbc5a commit 1defcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/multiprocessing/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ def _exhaustive_wait(handles, timeout):
return []
ready.extend(L[i] for i in res)
if res:
L = L[res[0] + 1:]
L = [h for i, h in enumerate(L) if i > res[0] & i not in res]
timeout = 0
while L:
short_L = L[:60] if len(L) > 60 else L
Expand Down

0 comments on commit 1defcfb

Please sign in to comment.