瀏覽代碼

whoops. inform circuits again when we failed to connect to their
first hop, so they don't have to time out.


svn:r6225

Roger Dingledine 19 年之前
父節點
當前提交
6fb2b6785d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/circuituse.c

+ 1 - 1
src/or/circuituse.c

@@ -516,7 +516,7 @@ circuit_about_to_close_connection(connection_t *conn)
    */
   switch (conn->type) {
     case CONN_TYPE_OR: {
-      if (connection_state_is_open(conn)) {
+      if (!connection_state_is_open(conn)) {
         /* Inform any pending (not attached) circs that they should
          * give up. */
         circuit_n_conn_done(conn, 0);