aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index e86f20b220..3afefcb3e3 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -267,6 +267,9 @@ static void conn_close_if_marked(int i) {
}
}
connection_remove(conn);
+ if(conn->type == CONN_TYPE_EXIT) {
+ assert_connection_edge_not_dns_pending(conn);
+ }
connection_free(conn);
if(i<nfds) { /* we just replaced the one at i with a new one.
process it too. */