summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/supervisor2.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl
index c40539de00..bab47077d9 100644
--- a/src/supervisor2.erl
+++ b/src/supervisor2.erl
@@ -663,7 +663,7 @@ terminate_simple_children(Child, Dynamics, SupName) ->
{Reply, Timedout1} =
receive
{timeout, Ref} ->
- Remaining = Pids -- dict:fetch_keys(Replies),
+ Remaining = Pids -- [P || {P, _} <- Replies],
[exit(P, kill) || P <- Remaining],
receive {'DOWN', _MRef, process, Pid, Reason} ->
{{error, Reason}, true}