aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-08-20 03:34:16 +0000
committerAndrea Shepard <andrea@torproject.org>2016-08-20 03:34:16 +0000
commit1a7709d40949b559a6f86e2bbcd1648eeeeed1af (patch)
tree9e75a42d1d6aab1c917acdac5b0e7e2d95fd0779 /src/or/main.c
parenta403230fe38d396189a32bc525aa596444d88b61 (diff)
downloadtor-1a7709d40949b559a6f86e2bbcd1648eeeeed1af.tar.gz
tor-1a7709d40949b559a6f86e2bbcd1648eeeeed1af.zip
Add connection_is_moribund() inline
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 9741f15022..6ab94f5e36 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -662,10 +662,7 @@ connection_count_moribund, (void))
* runs next.
*/
SMARTLIST_FOREACH_BEGIN(closeable_connection_lst, connection_t *, conn) {
- if (conn->conn_array_index < 0 ||
- conn->marked_for_close) {
- ++moribund;
- }
+ if (connection_is_moribund(conn)) ++moribund;
} SMARTLIST_FOREACH_END(conn);
return moribund;