diff options
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 82e28e4091..3cbd54d154 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -317,7 +317,8 @@ void connection_ap_attach_pending(void) for (i = 0; i < n; ++i) { conn = carray[i]; - if (conn->type != CONN_TYPE_AP || + if (conn->marked_for_close || + conn->type != CONN_TYPE_AP || conn->state != AP_CONN_STATE_CIRCUIT_WAIT) continue; if(connection_ap_handshake_attach_circuit(conn) < 0) { |