aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuit.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-10-04 08:19:23 +0000
committerRoger Dingledine <arma@torproject.org>2003-10-04 08:19:23 +0000
commit756619bfd2a0b0ea0606a820d2087e602ed94fbe (patch)
treec017ac604103f9afadd231250c635f9edc17c92f /src/or/circuit.c
parentbe874358a4385d8d6bd7f82d3f372bb79055033c (diff)
downloadtor-756619bfd2a0b0ea0606a820d2087e602ed94fbe.tar.gz
tor-756619bfd2a0b0ea0606a820d2087e602ed94fbe.zip
refactor around connection_edge_send_command()
svn:r539
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;
}