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 | cd35bd0a344ea92d52110ef14c5120f0a808b152 (patch) | |
tree | 9cba071f97d44cbc3c4c11d8e4ea4bbdc87f4a87 /src/rabbit.erl | |
parent | 2c61b5fa51ea72915471bc8f6c73be75c48d8f1d (diff) | |
download | rabbitmq-server-cd35bd0a344ea92d52110ef14c5120f0a808b152.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 9f78a58a..90181619 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}); |