]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
After we successfully connect, try handling pending stuff immediately, rather than...
authorNick Mathewson <nickm@torproject.org>
Tue, 22 Feb 2005 03:02:33 +0000 (03:02 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Feb 2005 03:02:33 +0000 (03:02 +0000)
svn:r3647

src/or/connection.c

index f23bfe64a8fcd87ebc1b7e4ad7aec0c668c4bc10..bad34746c2499bd21aeea9e3c413867886b2cb01 100644 (file)
@@ -1088,7 +1088,8 @@ int connection_handle_write(connection_t *conn) {
       }
     }
     /* The connection is successful. */
-    return connection_finished_connecting(conn);
+    if (connection_finished_connecting(conn)<0)
+      return -1;
   }
 
   if (connection_speaks_cells(conn)) {