summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2008-11-14 09:41:55 +0000
committerMatthias Radestock <matthias@lshift.net>2008-11-14 09:41:55 +0000
commit65b8792874352aedd9150cabdea2203c7b155426 (patch)
tree40b551b221418aed57245e81630f2c167e7f864a
parentcc01059ec52429c321dc3a6652820959743b28ef (diff)
downloadrabbitmq-server-65b8792874352aedd9150cabdea2203c7b155426.tar.gz
don't use gen_server hibernate featurebug19788
it was only introduced in R12 and we want to stay compatible with R11B-5.
-rw-r--r--src/rabbit_amqqueue_process.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index e687df84..f8964e34 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -689,7 +689,9 @@ handle_info({'DOWN', _MonitorRef, process, DownPid, _Reason}, State) ->
handle_ch_down(DownPid, State);
handle_info(timeout, State) ->
- {noreply, State, hibernate};
+ %% TODO: Once we drop support for R11B-5, we can change this to
+ %% {noreply, State, hibernate};
+ proc_lib:hibernate(gen_server, enter_loop, [?MODULE, [], State]);
handle_info(Info, State) ->
?LOGDEBUG("Info in queue: ~p~n", [Info]),