diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-20 14:57:38 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-20 14:57:38 +0100 |
commit | 7d0ed00d54316bf1f19cd89674e044ace028c56e (patch) | |
tree | 823c3f36250809f1ceea46f3f25775b934bc05c9 | |
parent | f9b196d2fe12d3f88d318338170f9eb73067648e (diff) | |
download | rabbitmq-server-7d0ed00d54316bf1f19cd89674e044ace028c56e.tar.gz |
fix bug that crept in
-rw-r--r-- | src/file_handle_cache.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl index c49eae7c..e65799a4 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}, |