Avoid stopping mod_offline before supervisor termination (#1464)

This commit is contained in:
Evgeniy Khramtsov 2017-01-17 14:31:00 +03:00
parent ce42b6be01
commit c7476875e6
1 changed files with 0 additions and 1 deletions

View File

@ -122,7 +122,6 @@ start(Host, Opts) ->
stop(Host) ->
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
catch ?GEN_SERVER:call(Proc, stop),
supervisor:terminate_child(ejabberd_sup, Proc),
supervisor:delete_child(ejabberd_sup, Proc),
ok.