24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

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

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.