diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-08 06:16:09 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-08 06:16:09 +0000 |
commit | e2cdc874854d484e59acabad79cde1e0502d0cde (patch) | |
tree | be651fdb1f1bea6079b61561ab4840bdfc94e1a4 /src/or/main.c | |
parent | 26b4bb9d0c3b597e03170ebc519c4a43ae0f7485 (diff) | |
download | tor-e2cdc874854d484e59acabad79cde1e0502d0cde.tar.gz tor-e2cdc874854d484e59acabad79cde1e0502d0cde.zip |
remove some redundant code
svn:r4062
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/main.c b/src/or/main.c index 39505f466f..b8268d62b4 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -322,14 +322,11 @@ void connection_start_writing(connection_t *conn) { (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) { |