Skip to content
Snippets Groups Projects
Commit a8417dfa authored by Roger Dingledine's avatar Roger Dingledine
Browse files

fix a double mark-for-close

svn:r1913
parent ccb82512
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment