summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_variable_queue.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl
index 38436b94cc..95b47d8343 100644
--- a/src/rabbit_variable_queue.erl
+++ b/src/rabbit_variable_queue.erl
@@ -593,8 +593,8 @@ dropwhile(Pred, MsgFun, State) ->
{true, _} ->
{{_, _, AckTag, _}, State2} =
internal_fetch(true, MsgStatus, State1),
- State3 = MsgFun(read_msg_callback(MsgStatus), AckTag, State2),
- dropwhile(Pred, MsgFun, State3);
+ dropwhile(Pred, MsgFun, MsgFun(read_msg_callback(MsgStatus),
+ AckTag, State2));
{false, _} ->
a(in_r(MsgStatus, State1))
end