]> granicus.if.org Git - ejabberd/commitdiff
Avoid stopping mod_offline before supervisor termination (#1464)
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Tue, 17 Jan 2017 11:31:00 +0000 (14:31 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Tue, 17 Jan 2017 11:31:00 +0000 (14:31 +0300)
src/mod_offline.erl

index 0c8c3f7a9d30e3dc999f12538b20648ed730fcf8..75f16f5bf57668d03dba49c4fbd205b51be6b763 100644 (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.