stop the infinite loop of freeing the same connection_t over and

over when it's not linked into the connection_array


svn:r3474
This commit is contained in:
Roger Dingledine 2005-01-31 00:26:09 +00:00
parent c53c7a0b4c
commit 75b45bcd4d

View File

@ -189,8 +189,8 @@ static void connection_unlink(connection_t *conn, int remove) {
connection_about_to_close_connection(conn);
if (remove) {
connection_remove(conn);
smartlist_remove(closeable_connection_lst, conn);
}
smartlist_remove(closeable_connection_lst, conn);
if (conn->type == CONN_TYPE_EXIT) {
assert_connection_edge_not_dns_pending(conn);
}