diff options
author | Roger Dingledine <arma@torproject.org> | 2003-10-04 08:19:23 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-10-04 08:19:23 +0000 |
commit | 756619bfd2a0b0ea0606a820d2087e602ed94fbe (patch) | |
tree | c017ac604103f9afadd231250c635f9edc17c92f /src/or/circuit.c | |
parent | be874358a4385d8d6bd7f82d3f372bb79055033c (diff) | |
download | tor-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.c | 6 |
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; } |