summaryrefslogtreecommitdiff
path: root/src
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
commitad39f4dd5cc051a76e124a9d1e0f5cda5dc419bd (patch)
tree40b551b221418aed57245e81630f2c167e7f864a /src
parent01251d6d91d60f48c57048c0bb975460f4b48cf8 (diff)
downloadrabbitmq-server-git-ad39f4dd5cc051a76e124a9d1e0f5cda5dc419bd.tar.gz
don't use gen_server hibernate feature
it was only introduced in R12 and we want to stay compatible with R11B-5.
Diffstat (limited to 'src')
-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 e687df846a..f8964e3454 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]),