A small memory footprint AMQP implimentation
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
Diff: message_receiver.c
- Revision:
- 12:b30dacf113f2
- Parent:
- 6:641a9672db08
- Child:
- 17:923575db8b2d
--- a/message_receiver.c Thu Sep 22 18:16:30 2016 -0700 +++ b/message_receiver.c Thu Oct 20 17:07:44 2016 -0700 @@ -320,14 +320,13 @@ { set_message_receiver_state(message_receiver_instance, MESSAGE_RECEIVER_STATE_CLOSING); - if (link_detach(message_receiver_instance->link) != 0) + if (link_detach(message_receiver_instance->link, true) != 0) { result = __LINE__; set_message_receiver_state(message_receiver_instance, MESSAGE_RECEIVER_STATE_ERROR); } else { - set_message_receiver_state(message_receiver_instance, MESSAGE_RECEIVER_STATE_IDLE); result = 0; } }