From 885a6aaa1e83cae2cf521a21e8f24ec6a3cf6d6b Mon Sep 17 00:00:00 2001 From: joseph Date: Mon, 18 Sep 2023 19:12:14 +0200 Subject: [PATCH] multi: add timeout to reply.get It is possible for this call to hang, like the other calls in this function. Passing through the timeout removes that possibility --- src/execnet/multi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execnet/multi.py b/src/execnet/multi.py index 64e95017..b9f62842 100644 --- a/src/execnet/multi.py +++ b/src/execnet/multi.py @@ -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)