From: Evgeniy Khramtsov Date: Tue, 17 Jan 2017 11:31:00 +0000 (+0300) Subject: Avoid stopping mod_offline before supervisor termination (#1464) X-Git-Tag: 17.01~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7476875e65ce648ea58364fecbc2097a2285da1;p=ejabberd Avoid stopping mod_offline before supervisor termination (#1464) --- diff --git a/src/mod_offline.erl b/src/mod_offline.erl index 0c8c3f7a9..75f16f5bf 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -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.