summaryrefslogtreecommitdiff
path: root/examples/amqp_sendstring.c
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-09-03 10:18:55 +0100
committerDavid Wragg <david@rabbitmq.com>2010-09-03 10:18:55 +0100
commitb85fa81a4076536048ea374094dccbd580a5fe6e (patch)
tree7985515d5dd7925706eaa82623449b6eaa053b7a /examples/amqp_sendstring.c
parentb339e621a8a85fbd749fdb499161320abed5ebb3 (diff)
parent1b1340ad50e18edc194f26a7156cab44b8a1bba0 (diff)
downloadrabbitmq-c-github-ask-b85fa81a4076536048ea374094dccbd580a5fe6e.tar.gz
Merge amqp_0_9_1 into bug22951 to remove headbug22951
Diffstat (limited to 'examples/amqp_sendstring.c')
-rw-r--r--examples/amqp_sendstring.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/amqp_sendstring.c b/examples/amqp_sendstring.c
index 6e8e0b6..ccd3866 100644
--- a/examples/amqp_sendstring.c
+++ b/examples/amqp_sendstring.c
@@ -108,7 +108,6 @@ int main(int argc, char const * const *argv) {
die_on_amqp_error(amqp_channel_close(conn, 1, AMQP_REPLY_SUCCESS), "Closing channel");
die_on_amqp_error(amqp_connection_close(conn, AMQP_REPLY_SUCCESS), "Closing connection");
- amqp_destroy_connection(conn);
- die_on_error(close(sockfd), "Closing socket");
+ die_on_error(amqp_destroy_connection(conn), "Ending connection");
return 0;
}