summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_plugins.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_plugins.erl b/src/rabbit_plugins.erl
index 0eabf4dd48..39639b6daf 100644
--- a/src/rabbit_plugins.erl
+++ b/src/rabbit_plugins.erl
@@ -42,12 +42,12 @@ ensure(Wanted) ->
Start = Wanted -- Current,
Stop = Current -- Wanted,
prepare_plugins(Start),
+ rabbit:start_apps(Start),
%% We need sync_notify here since mgmt will attempt to look at all
%% the modules for the disabled plugins - if they are unloaded
%% that won't work.
ok = rabbit_event:notify(plugins_changed, [{enabled, Start},
{disabled, Stop}]),
- rabbit:start_apps(Start),
rabbit:stop_apps(Stop),
clean_plugins(Stop),
{ok, Start, Stop}.