diff options
Diffstat (limited to 'tools/common.c')
-rw-r--r-- | tools/common.c | 2 |
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"); } |