summaryrefslogtreecommitdiff
path: root/src
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
commit3e78152cf063abef4639d3502297bfc5758eae70 (patch)
tree3f9cd797280fa5017726ffc68b3a9105f5ea4566 /src
parenta92b3a42e45f848499fd3c00ede80e7249a43fca (diff)
downloadrabbitmq-server-git-3e78152cf063abef4639d3502297bfc5758eae70.tar.gz
Make sure all code for both added and removed plugins is loaded when we send the notify event.
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}.