diff options
author | Matthias Radestock <matthias@lshift.net> | 2009-08-07 00:46:17 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2009-08-07 00:46:17 +0100 |
commit | 0a990e04cb58c0c0cfe539c1911dcc7f22beb3d5 (patch) | |
tree | f315b4fc3cfe91d660c86967412d45eb6224c158 | |
parent | ab72444489def37a267293633e426e92b6cabf47 (diff) | |
download | rabbitmq-server-0a990e04cb58c0c0cfe539c1911dcc7f22beb3d5.tar.gz |
don't ignore Debug info in pre/post-hibernate hook return handling
-rw-r--r-- | src/gen_server2.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gen_server2.erl b/src/gen_server2.erl index 509abeb0..5578342b 100644 --- a/src/gen_server2.erl +++ b/src/gen_server2.erl @@ -529,12 +529,12 @@ pre_hibernate(Parent, Name, State, Mod, TimeoutState, Queue, Debug) -> hibernate(Parent, Name, NState, Mod, TimeoutState, Queue, Debug); {stop, Reason, NState} -> - terminate(Reason, Name, pre_hibernate, Mod, NState, []); + terminate(Reason, Name, pre_hibernate, Mod, NState, Debug); {'EXIT', What} -> - terminate(What, Name, pre_hibernate, Mod, State, []); + terminate(What, Name, pre_hibernate, Mod, State, Debug); Reply -> terminate({bad_return_value, Reply}, Name, pre_hibernate, - Mod, State, []) + Mod, State, Debug) end; false -> hibernate(Parent, Name, State, Mod, TimeoutState, Queue, Debug) @@ -551,12 +551,12 @@ post_hibernate(Parent, Name, State, Mod, TimeoutState, Queue, Debug) -> process_next_msg(Parent, Name, NState, Mod, Time, TimeoutState, Queue, Debug); {stop, Reason, NState} -> - terminate(Reason, Name, post_hibernate, Mod, NState, []); + terminate(Reason, Name, post_hibernate, Mod, NState, Debug); {'EXIT', What} -> - terminate(What, Name, post_hibernate, Mod, State, []); + terminate(What, Name, post_hibernate, Mod, State, Debug); Reply -> terminate({bad_return_value, Reply}, Name, post_hibernate, - Mod, State, []) + Mod, State, Debug) end; false -> %% use hibernate here, not infinity. This matches |