diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-06-25 16:28:24 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-06-25 16:28:24 +0100 |
commit | 19cb51475cfc9531ae976f62875f8f386b599835 (patch) | |
tree | 5e86c9f33c8d82f8c3d933f741a230a361dc40e6 /src/rabbit_mirror_queue_slave.erl | |
parent | f954714b4dd70d6f1b2f598773f82724b6153120 (diff) | |
download | rabbitmq-server-19cb51475cfc9531ae976f62875f8f386b599835.tar.gz |
Get rid of this with_exit_handler use.
Diffstat (limited to 'src/rabbit_mirror_queue_slave.erl')
-rw-r--r-- | src/rabbit_mirror_queue_slave.erl | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/rabbit_mirror_queue_slave.erl b/src/rabbit_mirror_queue_slave.erl index df5f35ad..481897e6 100644 --- a/src/rabbit_mirror_queue_slave.erl +++ b/src/rabbit_mirror_queue_slave.erl @@ -358,18 +358,10 @@ handle_msg([SPid], _From, Msg) -> ok = gen_server2:cast(SPid, {gm, Msg}). inform_deaths(SPid, Deaths) -> - %% TODO can we get rid of this with_exit_handler use? See bug - %% 24988 comment 13. - rabbit_misc:with_exit_handler( - fun () -> {stop, normal} end, - fun () -> - case gen_server2:call(SPid, {gm_deaths, Deaths}, infinity) of - ok -> - ok; - {promote, CPid} -> - {become, rabbit_mirror_queue_coordinator, [CPid]} - end - end). + case gen_server2:call(SPid, {gm_deaths, Deaths}, infinity) of + ok -> ok; + {promote, CPid} -> {become, rabbit_mirror_queue_coordinator, [CPid]} + end. %% --------------------------------------------------------------------------- %% Others |