summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-02-28 04:44:48 +0000
committerRoger Dingledine <arma@torproject.org>2004-02-28 04:44:48 +0000
commite59f19ca034361560d0fa332eb291961c63c1cea (patch)
treede19576dad6abf40a99e527d6677f884881ad404 /src/or/connection_edge.c
parentb4a7883c90716aed9362340e2905baf8d5c049c5 (diff)
downloadtor-e59f19ca034361560d0fa332eb291961c63c1cea.tar.gz
tor-e59f19ca034361560d0fa332eb291961c63c1cea.zip
some more small fixes
svn:r1152
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 08cf97144a..ef07107c8c 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -305,7 +305,9 @@ int connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, connection
conn->done_sending = 1;
shutdown(conn->s, 1); /* XXX check return; refactor NM */
if (conn->done_receiving) {
- connection_mark_for_close(conn, END_STREAM_REASON_DONE);
+ /* We just *got* an end; no reason to send one. */
+ conn->has_sent_end = 1;
+ connection_mark_for_close(conn, 0);
}
#else
/* We just *got* an end; no reason to send one. */