diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2012-03-23 18:51:38 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-03-23 18:51:38 +0000 |
commit | 2ad1cd82e4c38c102fa01aea631f809ea4b69e94 (patch) | |
tree | 05f2bf826908218fabb0ff9a862a71fef2db64cc | |
parent | b64be9d1e0732111e15c301b5764074bf629d4aa (diff) | |
download | rabbitmq-server-2ad1cd82e4c38c102fa01aea631f809ea4b69e94.tar.gz |
cosmetic
-rw-r--r-- | src/rabbit_amqqueue_process.erl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 41fc173b..613c11da 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -333,12 +333,10 @@ ensure_expiry_timer(State = #q{expires = undefined}) -> State; ensure_expiry_timer(State = #q{expires = Expires}) -> case is_unused(State) of - true -> - NewState = stop_expiry_timer(State), - TRef = erlang:send_after(Expires, self(), maybe_expire), - NewState#q{expiry_timer_ref = TRef}; - false -> - State + true -> NewState = stop_expiry_timer(State), + TRef = erlang:send_after(Expires, self(), maybe_expire), + NewState#q{expiry_timer_ref = TRef}; + false -> State end. ensure_stats_timer(State) -> |