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
1 changed files with 2 additions and 1 deletions

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.