Преглед изворни кода

After we successfully connect, try handling pending stuff immediately, rather than waiting for the next call to connection_handle_write. Roger: is this right?

svn:r3647
Nick Mathewson пре 20 година
родитељ
комит
c2d5b67dd2
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/or/connection.c

+ 2 - 1
src/or/connection.c

@@ -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)) {