Skip to content

Commit 3f96a0f

Browse files
committed
Fix crash when basic message is received
Makes the following test green: ``` bazel test //deps/rabbitmq_amqp1_0:amqp10_client_SUITE-mixed ```
1 parent 03d3240 commit 3f96a0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbitmq_amqp1_0/src/rabbit_amqp1_0_session.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,8 +975,8 @@ handle_deliver(ConsumerTag, AckRequired,
975975
aborted = false,
976976
%% TODO: actually batchable would be fine
977977
batchable = false},
978-
Mc1 = mc:set_annotation(redelivered, Redelivered, Mc0),
979-
Mc = mc:convert(mc_amqp, Mc1),
978+
Mc1 = mc:convert(mc_amqp, Mc0),
979+
Mc = mc:set_annotation(redelivered, Redelivered, Mc1),
980980
Sections = mc:serialize(Mc),
981981
?DEBUG("Outbound content:~n ~tp",
982982
[[amqp10_framing:pprint(Section) ||

0 commit comments

Comments
 (0)