From 756619bfd2a0b0ea0606a820d2087e602ed94fbe Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 4 Oct 2003 08:19:23 +0000 Subject: refactor around connection_edge_send_command() svn:r539 --- src/or/circuit.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/or/circuit.c') diff --git a/src/or/circuit.c b/src/or/circuit.c index 356e89559..b23b55701 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; } -- cgit v1.2.3