summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-07-26 03:09:38 +0100
committerDavid Wragg <david@rabbitmq.com>2010-07-26 03:09:38 +0100
commit7290a2692cd0f597573de51599c9b50088c02f90 (patch)
tree39866d75e726fe2817030e4205f68831b63d3551 /tools
parent6cc7fe86a01628483646a0b1eca423a9d8a34025 (diff)
downloadrabbitmq-c-github-ask-7290a2692cd0f597573de51599c9b50088c02f90.tar.gz
Fold amqp_end_connection socket closing into amqp_destroy_connection
Diffstat (limited to 'tools')
-rw-r--r--tools/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/common.c b/tools/common.c
index 39099c1..1d8fbd8 100644
--- a/tools/common.c
+++ b/tools/common.c
@@ -236,7 +236,7 @@ void close_connection(amqp_connection_state_t conn)
die_rpc(amqp_connection_close(conn, AMQP_REPLY_SUCCESS),
"closing connection");
- res = amqp_end_connection(conn);
+ res = amqp_destroy_connection(conn);
die_amqp_error(-res, "closing connection");
}