summaryrefslogtreecommitdiff
path: root/src/or/connection.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/connection.c
parenta403230fe38d396189a32bc525aa596444d88b61 (diff)
downloadtor-1a7709d40949b559a6f86e2bbcd1648eeeeed1af.tar.gz
tor-1a7709d40949b559a6f86e2bbcd1648eeeeed1af.zip
Add connection_is_moribund() inline
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index f38dc59a01..713a70cca4 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -4588,8 +4588,7 @@ pick_oos_victims, (int n))
++(conn_counts_by_type[c->type]);
/* Skip anything we would count as moribund */
- if (c->conn_array_index < 0 ||
- c->marked_for_close) {
+ if (connection_is_moribund(c)) {
continue;
}