From 2b06b4f4425b212a98dde5bb94a20fe343aa68ea Mon Sep 17 00:00:00 2001 From: Emile Joubert Date: Thu, 9 May 2013 15:42:22 +0100 Subject: Clear queue expiry timer ref when fired --- src/rabbit_amqqueue_process.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 066392f8..d2f4a178 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -1356,7 +1356,7 @@ handle_cast(wake_up, State) -> handle_info(maybe_expire, State) -> case is_unused(State) of true -> stop(State); - false -> noreply(ensure_expiry_timer(State)) + false -> noreply(State#q{expiry_timer_ref = undefined}) end; handle_info(drop_expired, State) -> -- cgit v1.2.1