From fc7d5e598bb2494bd121e73038cf29854a23d9d5 Mon Sep 17 00:00:00 2001 From: rl1987 Date: Sun, 23 Nov 2014 21:34:41 +0200 Subject: Using CHANNEL_FINISHED macro in connection.c --- src/or/connection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/or/connection.c') diff --git a/src/or/connection.c b/src/or/connection.c index c9c371c001..16b359d5ed 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -544,8 +544,7 @@ connection_free_(connection_t *conn) or_conn, TLS_CHAN_TO_BASE(or_conn->chan), U64_PRINTF_ARG( TLS_CHAN_TO_BASE(or_conn->chan)->global_identifier)); - if (!(TLS_CHAN_TO_BASE(or_conn->chan)->state == CHANNEL_STATE_CLOSED || - TLS_CHAN_TO_BASE(or_conn->chan)->state == CHANNEL_STATE_ERROR)) { + if (!CHANNEL_FINISHED(TLS_CHAN_TO_BASE(or_conn->chan))) { channel_close_for_error(TLS_CHAN_TO_BASE(or_conn->chan)); } -- cgit v1.2.3-54-g00ecf