mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Merge pull request #2690 from nosnilmot/stopping-hook
Add ejabberd_stopping hook
This commit is contained in:
commit
87f8355908
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ start(_, _) ->
|
|||
%% This function is called when an application is about to be stopped,
|
||||
%% before shutting down the processes of the application.
|
||||
prep_stop(State) ->
|
||||
ejabberd_hooks:run(ejabberd_stopping, []),
|
||||
ejabberd_listener:stop_listeners(),
|
||||
ejabberd_sm:stop(),
|
||||
gen_mod:stop_modules(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue