From: Roger Dingledine Date: Sun, 1 Jun 2003 02:09:36 +0000 (+0000) Subject: bugfix: it was expiring circuits that still had active connections X-Git-Tag: tor-0.0.2pre8~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfa64b61ed7f7c3ff0976755cb8dd319be7362f1;p=thirdparty%2Ftor.git bugfix: it was expiring circuits that still had active connections svn:r303 --- diff --git a/src/or/circuit.c b/src/or/circuit.c index a05c440e1b..a01ea16c15 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -621,7 +621,7 @@ void circuit_expire_unused_circuits(void) { while(circ) { tmpcirc = circ; circ = circ->next; - if(tmpcirc != youngest && !tmpcirc->p_conn) { + if(tmpcirc != youngest && !tmpcirc->p_conn && !tmpcirc->p_streams) { log(LOG_DEBUG,"circuit_expire_unused_circuits(): Closing n_aci %d",tmpcirc->n_aci); circuit_close(tmpcirc); }