Skip to content

Commit

Permalink
multi: add timeout to reply.get
Browse files Browse the repository at this point in the history
It is possible for this call to hang, like the other calls in this function. Passing through the timeout removes that possibility
  • Loading branch information
JCourt1 authored Sep 18, 2023
1 parent baa2b81 commit 885a6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execnet/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def termkill(termfunc, killfunc):
reply = workerpool.spawn(termkill, termfunc, killfunc)
replylist.append(reply)
for reply in replylist:
reply.get()
reply.get(timeout=timeout)
workerpool.waitall(timeout=timeout)


Expand Down

0 comments on commit 885a6aa

Please sign in to comment.