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 | 18786eda7fb6352a99085af077d28efdcb6884b8 (patch) | |
tree | 3f9cd797280fa5017726ffc68b3a9105f5ea4566 | |
parent | c408795f2631cf9fa4cdb524ee9663070449d9d7 (diff) | |
download | rabbitmq-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.erl | 2 |
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}. |