aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-06-01 02:09:36 +0000
committerRoger Dingledine <arma@torproject.org>2003-06-01 02:09:36 +0000
commitdfa64b61ed7f7c3ff0976755cb8dd319be7362f1 (patch)
tree41d54f64259434fc18b2083ae252e41d70297ada /src
parent430545432fcd301dd6511b0f2f2497dd251b96d6 (diff)
downloadtor-dfa64b61ed7f7c3ff0976755cb8dd319be7362f1.tar.gz
tor-dfa64b61ed7f7c3ff0976755cb8dd319be7362f1.zip
bugfix: it was expiring circuits that still had active connections
svn:r303
Diffstat (limited to 'src')
-rw-r--r--src/or/circuit.c2
1 files changed, 1 insertions, 1 deletions
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);
}