浏览代码

bugfix: it was expiring circuits that still had active connections

svn:r303
Roger Dingledine 22 年之前
父节点
当前提交
dfa64b61ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/circuit.c

+ 1 - 1
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);
     }