aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/connection_or.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 54eb78bd6..c70c573e6 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -398,9 +398,8 @@ connection_or_get_by_identity_digest(const char *digest)
if (!best->is_obsolete && conn->is_obsolete)
continue; /* We never prefer obsolete over non-obsolete connections. */
- /* If both are obsolete we prefer the newer: */
- if ((best->is_obsolete && conn->is_obsolete && newer) ||
- /* We prefer non-obsolete connections */
+ if (
+ /* We prefer non-obsolete connections: */
(best->is_obsolete && !conn->is_obsolete) ||
/* If both have circuits we prefer the newer: */
(best->n_circuits && conn->n_circuits && newer) ||