summaryrefslogtreecommitdiff
path: root/src/or/circuit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r--src/or/circuit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c
index 356e895593..b23b557013 100644
--- a/src/or/circuit.c
+++ b/src/or/circuit.c
@@ -543,10 +543,8 @@ void circuit_about_to_close_connection(connection_t *conn) {
log_fn(LOG_ERR,"edge conn not in circuit's list?");
assert(0); /* should never get here */
send_end:
- if(connection_edge_send_command(conn, circ, RELAY_COMMAND_END) < 0) {
- log_fn(LOG_DEBUG,"sending end failed. Closing.");
- circuit_close(circ);
- }
+ connection_edge_send_command(conn, circ, RELAY_COMMAND_END,
+ NULL, 0, conn->cpath_layer);
return;
}