diff options
| author | Diana Corbacho <diana@rabbitmq.com> | 2018-11-02 15:57:51 +0000 |
|---|---|---|
| committer | Diana Corbacho <diana@rabbitmq.com> | 2018-11-02 15:57:51 +0000 |
| commit | e9479d88d19dd238d39c9e7cf444b945a51c193c (patch) | |
| tree | 260a258f7de3ac8b057921ab8fd0b0149952438c /src | |
| parent | 9dcaed2632801c1849cf28be91c71d496f186c3e (diff) | |
| download | rabbitmq-server-git-e9479d88d19dd238d39c9e7cf444b945a51c193c.tar.gz | |
Call rabbit:stop_apps in reverse order
stop_apps will already revert the app order
[#161558295]
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 {[], []} -> |
