diff options
| -rw-r--r-- | src/mirrored_supervisor.erl | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mirrored_supervisor.erl b/src/mirrored_supervisor.erl index 3ecff1efea..2501df4698 100644 --- a/src/mirrored_supervisor.erl +++ b/src/mirrored_supervisor.erl @@ -246,16 +246,10 @@ start_link0(Prefix, Group, Init) -> init(Mod, Args) -> case Mod:init(Args) of - Init = {ok, {Restart, _ChildSpecs}} -> - case Restart of - {Bad, _, _} when Bad =:= simple_one_for_one orelse - Bad =:= simple_one_for_one_terminate -> - error(badarg); - _ -> - Init - end; - ignore -> - ignore + {ok, {{Bad, _, _}, _ChildSpecs}} when + Bad =:= simple_one_for_one orelse + Bad =:= simple_one_for_one_terminate -> error(badarg); + Init -> Init end. start_child(Sup, ChildSpec) -> call(Sup, {start_child, ChildSpec}). |
