summaryrefslogtreecommitdiff
path: root/src/rabbit_misc.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit_misc.erl')
-rw-r--r--src/rabbit_misc.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 31648372..5f23caf8 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -1050,10 +1050,8 @@ ensure_timer(State, Idx, After, Msg) ->
stop_timer(State, Idx) ->
case element(Idx, State) of
undefined -> State;
- TRef -> case cancel_timer(TRef) of %% TODO bug 25393 comment 3
- false -> State;
- _ -> setelement(Idx, State, undefined)
- end
+ TRef -> cancel_timer(TRef),
+ setelement(Idx, State, undefined)
end.
%% timer:send_after/3 goes through a single timer process but allows