diff options
| author | Matthias Radestock <matthias@lshift.net> | 2008-11-14 09:41:55 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@lshift.net> | 2008-11-14 09:41:55 +0000 |
| commit | ad39f4dd5cc051a76e124a9d1e0f5cda5dc419bd (patch) | |
| tree | 40b551b221418aed57245e81630f2c167e7f864a | |
| parent | 01251d6d91d60f48c57048c0bb975460f4b48cf8 (diff) | |
| download | rabbitmq-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.
| -rw-r--r-- | src/rabbit_amqqueue_process.erl | 4 |
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]), |
