aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r--src/or/circuitlist.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index c7b15e40b..3cb429be1 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -217,8 +217,11 @@ circuit_set_p_circid_chan(or_circuit_t *circ, circid_t id,
circuit_set_circid_chan_helper(TO_CIRCUIT(circ), CELL_DIRECTION_IN,
id, chan);
- if (chan)
+ if (chan) {
tor_assert(bool_eq(circ->p_chan_cells.n, circ->next_active_on_p_chan));
+
+ chan->timestamp_last_had_circuits = approx_time();
+ }
}
/** Set the n_conn field of a circuit <b>circ</b>, along
@@ -230,8 +233,11 @@ circuit_set_n_circid_chan(circuit_t *circ, circid_t id,
{
circuit_set_circid_chan_helper(circ, CELL_DIRECTION_OUT, id, chan);
- if (chan)
+ if (chan) {
tor_assert(bool_eq(circ->n_chan_cells.n, circ->next_active_on_n_chan));
+
+ chan->timestamp_last_had_circuits = approx_time();
+ }
}
/** Change the state of <b>circ</b> to <b>state</b>, adding it to or removing