diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-06-05 17:11:54 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-06-05 17:11:54 +0100 |
commit | c57a0236fc2ec7cdd96f5abd7a3f18d1e4282a59 (patch) | |
tree | e340720d8d2c38f05639c800b52859f9fc233ce2 /src/rabbit_plugins.erl | |
parent | 7d6c1d8b723a84b8b242fc8d1ff6cbb281a15d24 (diff) | |
download | rabbitmq-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.erl | 5 |
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. |