diff options
author | Roger Dingledine <arma@torproject.org> | 2004-02-29 00:11:37 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-02-29 00:11:37 +0000 |
commit | 195ee8c845482c827761acae07175d57e287717e (patch) | |
tree | 525a1159e27089e67e7bc669b3cdd6b8fefd6a8e /src/or/connection.c | |
parent | 62d3df8633ff5e00eddc76dc690fe6696f1c583b (diff) | |
download | tor-195ee8c845482c827761acae07175d57e287717e.tar tor-195ee8c845482c827761acae07175d57e287717e.tar.gz |
create a separate connection_edge_destroy() function
svn:r1176
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 1ebc65aad..700c056fb 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -752,17 +752,7 @@ int connection_send_destroy(uint16_t circ_id, connection_t *conn) { cell_t cell; assert(conn); - - if(!connection_speaks_cells(conn)) { - log_fn(LOG_INFO,"CircID %d: At an edge. Marking connection for close.", - circ_id); - conn->has_sent_end = 1; /* we're closing the circuit, nothing to send to */ -/* XXX really, we should separate this function into two functions. - * one of them actually sends the destroy cell, as this function's name - * implies, and another one destroys a stream. Yes/no? -RD */ - connection_mark_for_close(conn, END_STREAM_REASON_DESTROY); - return 0; - } + assert(connection_speaks_cells(conn)); memset(&cell, 0, sizeof(cell_t)); cell.circ_id = circ_id; |