Skip to content

Commit

Permalink
Avoid stopping mod_offline before supervisor termination (processone#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zinid committed Jan 17, 2017
1 parent ce42b6b commit c747687
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/mod_offline.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c747687

Please sign in to comment.