Skip to content

Commit e9479d8

Browse files
committed
Call rabbit:stop_apps in reverse order
stop_apps will already revert the app order [#161558295]
1 parent 9dcaed2 commit e9479d8

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)