Skip to content

Commit 9aa1093

Browse files
Merge pull request #1758 from rabbitmq/plugin-disable-ordering
Call rabbit:stop_apps in reverse order
2 parents f476750 + e9479d8 commit 9aa1093

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rabbit_plugins.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ ensure1(FileJustChanged0) ->
6969
%% that won't work.
7070
ok = rabbit_event:sync_notify(plugins_changed, [{enabled, Start},
7171
{disabled, Stop}]),
72-
rabbit:stop_apps(Stop),
72+
%% The app_utils module stops the apps in reverse order, so we should
73+
%% pass them here in dependency order.
74+
rabbit:stop_apps(lists:reverse(Stop)),
7375
clean_plugins(Stop),
7476
case {Start, Stop} of
7577
{[], []} ->

0 commit comments

Comments
 (0)