diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-08-20 03:34:16 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-08-20 03:34:16 +0000 |
commit | 1a7709d40949b559a6f86e2bbcd1648eeeeed1af (patch) | |
tree | 9e75a42d1d6aab1c917acdac5b0e7e2d95fd0779 /src/or/connection.c | |
parent | a403230fe38d396189a32bc525aa596444d88b61 (diff) | |
download | tor-1a7709d40949b559a6f86e2bbcd1648eeeeed1af.tar.gz tor-1a7709d40949b559a6f86e2bbcd1648eeeeed1af.zip |
Add connection_is_moribund() inline
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 3 |
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; } |