Skip to content

Commit 962d702

Browse files
dcorbachomichaelklishin
authored andcommitted
Call rabbit:stop_apps in reverse order
stop_apps will already revert the app order [#161558295] (cherry picked from commit e9479d8)
1 parent 819d49a commit 962d702

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
@@ -68,7 +68,9 @@ ensure1(FileJustChanged0) ->
6868
%% that won't work.
6969
ok = rabbit_event:sync_notify(plugins_changed, [{enabled, Start},
7070
{disabled, Stop}]),
71-
rabbit:stop_apps(Stop),
71+
%% The app_utils module stops the apps in reverse order, so we should
72+
%% pass them here in dependency order.
73+
rabbit:stop_apps(lists:reverse(Stop)),
7274
clean_plugins(Stop),
7375
case {Start, Stop} of
7476
{[], []} ->

0 commit comments

Comments
 (0)