From ad2192c90f11575180f90dbd1e4a9e3c81c3eb3f Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 8 Apr 2004 02:22:26 +0000 Subject: [PATCH] only call circuit_build_failed when we're circ's origin svn:r1554 --- src/or/circuit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/or/circuit.c b/src/or/circuit.c index 0312b08504..8a463fedbe 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -873,7 +873,8 @@ int _circuit_mark_for_close(circuit_t *circ) { * links worked and which didn't. */ if (circ->state != CIRCUIT_STATE_OPEN) { - circuit_build_failed(circ); /* take actions if necessary */ + if(circ->cpath) //XXX + circuit_build_failed(circ); /* take actions if necessary */ circuit_rep_hist_note_result(circ); }