diff --git a/lib/horde/processes_supervisor.ex b/lib/horde/processes_supervisor.ex index 327a2d0..9af9014 100644 --- a/lib/horde/processes_supervisor.ex +++ b/lib/horde/processes_supervisor.ex @@ -806,9 +806,7 @@ defmodule Horde.ProcessesSupervisor do %{children: children} = state case children do - %{^pid => restarting_args} -> - {:restarting, child} = restarting_args - + %{^pid => {:restarting, child}} -> case restart_child(pid, child, state) do {:ok, state} -> {:noreply, state} {:shutdown, state} -> {:stop, :shutdown, state}