[or-cvs] whoops. inform circuits again when we failed to connect to ...

arma at seul.org arma at seul.org
Wed Mar 22 04:09:32 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	circuituse.c 
Log Message:
whoops. inform circuits again when we failed to connect to their
first hop, so they don't have to time out.


Index: circuituse.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuituse.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -p -d -r1.121 -r1.122
--- circuituse.c	22 Mar 2006 00:52:36 -0000	1.121
+++ circuituse.c	22 Mar 2006 04:09:30 -0000	1.122
@@ -516,7 +516,7 @@ circuit_about_to_close_connection(connec
    */
   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);



More information about the tor-commits mailing list