25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix mod_offline termination

This commit is contained in:
Evgeniy Khramtsov 2015-03-12 12:12:22 +03:00 committed by Christophe Romain
parent b7726ee392
commit 4d2924a3ef

View File

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