diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2015-03-12 12:12:22 +0300 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2015-03-20 10:40:13 +0100 |
commit | 4d2924a3eff91f81060be168dcf56a2d75738146 (patch) | |
tree | b747a24ec6d7448e5d327897705b620d423b6d95 | |
parent | Explicitly set standard_conforming_strings to off with PostreSQL (diff) |
Fix mod_offline termination
-rw-r--r-- | src/mod_offline.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_offline.erl b/src/mod_offline.erl index 3a992172b..d345140e2 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -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. |