diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-25 06:43:40 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-25 06:43:40 +0000 |
commit | e1ac30c2bb270f3be2dad2369664f8165853d878 (patch) | |
tree | b44b42e4b9e252d09e1f4d7405c77201fbf2138d /src | |
parent | 288f2ed59e54e24b9c98f55c046d86da94e5d789 (diff) | |
download | tor-e1ac30c2bb270f3be2dad2369664f8165853d878.tar.gz tor-e1ac30c2bb270f3be2dad2369664f8165853d878.zip |
stop calling assert_connection_ok(conn, time(NULL)) on every single
conn on every single loop.
svn:r3229
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index 57843ab348..37568ff3a3 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -338,10 +338,10 @@ static void conn_close_if_marked(int i) { int retval; conn = connection_array[i]; - assert_connection_ok(conn, time(NULL)); - assert_all_pending_dns_resolves_ok(); if (!conn->marked_for_close) return; /* nothing to see here, move along */ + assert_connection_ok(conn, time(NULL)); + assert_all_pending_dns_resolves_ok(); log_fn(LOG_INFO,"Cleaning up connection (fd %d).",conn->s); if (conn->s >= 0 && connection_wants_to_flush(conn)) { |