浏览代码

resolve another 'hasn't sent end yet' bug

svn:r3911
Roger Dingledine 19 年之前
父节点
当前提交
7cf33ed495
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/circuitlist.c

+ 1 - 0
src/or/circuitlist.c

@@ -432,6 +432,7 @@ int _circuit_mark_for_close(circuit_t *circ) {
       /* The other side will see a DESTROY, and infer that the connections
        * are closing because the circuit is getting torn down.  No need
        * to send an end cell*/
+      conn->has_sent_end = 1; /* we're closing the circuit, nothing to send to */
       connection_mark_for_close(conn);
     }
   }