Skip to content

Commit

Permalink
Fix stop order to prevent an instrumentation error
Browse files Browse the repository at this point in the history
Config needs to exist until mongoose_instrument is stopped.
  • Loading branch information
chrzaszcz committed Jun 3, 2024
1 parent 613f7a0 commit 23a899d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ejabberd_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ prep_stop(State) ->
broadcast_c2s_shutdown_sup(),
mongoose_wpool:stop(),
mongoose_metrics:remove_all_metrics(),
mongoose_config:stop(),
mongoose_graphql_commands:stop(),
State.

%% All the processes were killed when this function is called
stop(_State) ->
mongoose_config:stop(),
?LOG_NOTICE(#{what => mongooseim_node_stopped, version => ?MONGOOSE_VERSION, node => node()}),
delete_pid_file(),
update_status_file(stopped),
Expand Down

0 comments on commit 23a899d

Please sign in to comment.