[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] remove some redundant code



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

Modified Files:
	main.c 
Log Message:
remove some redundant code


Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.485
retrieving revision 1.486
diff -u -d -r1.485 -r1.486
--- main.c	7 Apr 2005 20:25:22 -0000	1.485
+++ main.c	8 Apr 2005 06:16:09 -0000	1.486
@@ -322,14 +322,11 @@
            (int)conn->s);
 }
 
-/** Close all connections that have been schedule to get closed */
+/** Close all connections that have been scheduled to get closed */
 static void
 close_closeable_connections(void)
 {
   int i;
-  if (!smartlist_len(closeable_connection_lst))
-    return;
-
   for (i = 0; i < smartlist_len(closeable_connection_lst); ) {
     connection_t *conn = smartlist_get(closeable_connection_lst, i);
     if (conn->poll_index < 0) {