summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-08-20 14:57:38 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-08-20 14:57:38 +0100
commitefd038f6621af2333e45f3d55bb65206f78363f6 (patch)
tree823c3f36250809f1ceea46f3f25775b934bc05c9
parent940862cc555b20c43607bbe3d6c66aba2088a24d (diff)
downloadrabbitmq-server-git-efd038f6621af2333e45f3d55bb65206f78363f6.tar.gz
fix bug that crept in
-rw-r--r--src/file_handle_cache.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl
index c49eae7ca0..e65799a43e 100644
--- a/src/file_handle_cache.erl
+++ b/src/file_handle_cache.erl
@@ -826,9 +826,10 @@ handle_cast({transfer, FromPid, ToPid}, State) ->
ensure_mref(ToPid, State))))};
handle_cast(check_counts, State) ->
- {noreply, case needs_reduce(State) of
- true -> reduce(State #fhc_state { timer_ref = undefined });
- false -> State
+ State1 = State #fhc_state { timer_ref = undefined },
+ {noreply, case needs_reduce(State1) of
+ true -> reduce(State1);
+ false -> State1
end}.
handle_info({'DOWN', _MRef, process, Pid, _Reason},