diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-06-10 13:29:02 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-06-10 13:29:02 +0100 |
| commit | 3e78152cf063abef4639d3502297bfc5758eae70 (patch) | |
| tree | 3f9cd797280fa5017726ffc68b3a9105f5ea4566 | |
| parent | a92b3a42e45f848499fd3c00ede80e7249a43fca (diff) | |
| download | rabbitmq-server-git-3e78152cf063abef4639d3502297bfc5758eae70.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.erl | 2 |
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}. |
