mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
and another one
svn:r1147
This commit is contained in:
parent
611f117ce1
commit
d0ad9b147a
@ -737,6 +737,10 @@ int connection_send_destroy(uint16_t circ_id, connection_t *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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user