Fix startup of supervisors for listening modules

This commit is contained in:
Evgeny Khramtsov 2019-10-01 23:28:00 +03:00
parent 6ca5691792
commit 7fc272918a
1 changed files with 1 additions and 0 deletions

View File

@ -346,6 +346,7 @@ start_module_sup(Module, Opts) ->
[ejabberd_tmp_sup]},
case supervisor:start_child(ejabberd_sup, ChildSpec) of
{ok, _} -> Proc;
{error, {already_started, _}} -> Proc;
_ -> undefined
end;
false ->