summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/circuitlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 22ad5c9272..1f08f197f1 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -432,6 +432,7 @@ int _circuit_mark_for_close(circuit_t *circ) {
/* The other side will see a DESTROY, and infer that the connections
* are closing because the circuit is getting torn down. No need
* to send an end cell*/
+ conn->has_sent_end = 1; /* we're closing the circuit, nothing to send to */
connection_mark_for_close(conn);
}
}