summaryrefslogtreecommitdiff
path: root/src/rabbit_plugins.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-06-05 17:11:54 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-06-05 17:11:54 +0100
commitc57a0236fc2ec7cdd96f5abd7a3f18d1e4282a59 (patch)
treee340720d8d2c38f05639c800b52859f9fc233ce2 /src/rabbit_plugins.erl
parent7d6c1d8b723a84b8b242fc8d1ff6cbb281a15d24 (diff)
downloadrabbitmq-server-c57a0236fc2ec7cdd96f5abd7a3f18d1e4282a59.tar.gz
Oops, we do need sync_notify - reinstate it.
Diffstat (limited to 'src/rabbit_plugins.erl')
-rw-r--r--src/rabbit_plugins.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_plugins.erl b/src/rabbit_plugins.erl
index f6860424..2dffa669 100644
--- a/src/rabbit_plugins.erl
+++ b/src/rabbit_plugins.erl
@@ -47,7 +47,10 @@ disable(Plugins) ->
RunningApps = rabbit_misc:which_applications(),
ToDisable = [P || P <- Plugins,
proplists:is_defined(P, RunningApps)],
- ok = rabbit_event:notify(plugins_changed, [{disabled, ToDisable}]),
+ %% 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:sync_notify(plugins_changed, [{disabled, ToDisable}]),
rabbit:stop_apps(ToDisable).
%% @doc Prepares the file system and installs all enabled plugins.