diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-06-06 17:28:45 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-06-06 17:28:45 +0100 |
| commit | ef2118aa90bccfaf7e29bbfe1b23f39f23f6f6f7 (patch) | |
| tree | 9cba071f97d44cbc3c4c11d8e4ea4bbdc87f4a87 /src/rabbit.erl | |
| parent | d037853e220b9845760e119709c671713f084ec1 (diff) | |
| download | rabbitmq-server-git-ef2118aa90bccfaf7e29bbfe1b23f39f23f6f6f7.tar.gz | |
Move the code-unloading thing to rabbit_plugins, and remove the unpacked plugin after doing it, so that it actually allows us to reload modified plugins.
Diffstat (limited to 'src/rabbit.erl')
| -rw-r--r-- | src/rabbit.erl | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 9f78a58a7a..9018161991 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -395,20 +395,8 @@ stop_apps(Apps) -> false -> run_cleanup_steps(Apps); %% plugin deactivation true -> ok %% it's all going anyway end, - unload_apps(Apps), ok. -unload_apps(Apps) -> - [begin - {ok, Mods} = application:get_key(App, modules), - [begin - code:soft_purge(Mod), - code:delete(Mod), - false = code:is_loaded(Mod) - end || Mod <- Mods], - application:unload(App) - end || App <- Apps]. - handle_app_error(Term) -> fun(App, {bad_return, {_MFA, {'EXIT', {ExitReason, _}}}}) -> throw({Term, App, ExitReason}); |
