]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: it was expiring circuits that still had active connections
authorRoger Dingledine <arma@torproject.org>
Sun, 1 Jun 2003 02:09:36 +0000 (02:09 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 1 Jun 2003 02:09:36 +0000 (02:09 +0000)
svn:r303

src/or/circuit.c

index a05c440e1b9efeddfe54299b71d5164aa0856481..a01ea16c15cda0fc2ac478b0f3f3468687a12816 100644 (file)
@@ -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);
     }