summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-06-10 13:29:02 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-06-10 13:29:02 +0100
commit18786eda7fb6352a99085af077d28efdcb6884b8 (patch)
tree3f9cd797280fa5017726ffc68b3a9105f5ea4566
parentc408795f2631cf9fa4cdb524ee9663070449d9d7 (diff)
downloadrabbitmq-server-18786eda7fb6352a99085af077d28efdcb6884b8.tar.gz
Make sure all code for both added and removed plugins is loaded when we send the notify event.
-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 0eabf4dd..39639b6d 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}.