diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_plugins.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_plugins.erl b/src/rabbit_plugins.erl index 589fb3380d..ee54733e25 100644 --- a/src/rabbit_plugins.erl +++ b/src/rabbit_plugins.erl @@ -69,7 +69,9 @@ ensure1(FileJustChanged0) -> %% that won't work. ok = rabbit_event:sync_notify(plugins_changed, [{enabled, Start}, {disabled, Stop}]), - rabbit:stop_apps(Stop), + %% The app_utils module stops the apps in reverse order, so we should + %% pass them here in dependency order. + rabbit:stop_apps(lists:reverse(Stop)), clean_plugins(Stop), case {Start, Stop} of {[], []} -> |
