Dont expire circuits we didnt originate. This may be redundant somehow, but better safe than sorry.

svn:r1331
This commit is contained in:
Nick Mathewson 2004-03-21 05:01:06 +00:00
parent 2561472809
commit b3f6b55ea1

View File

@ -926,6 +926,7 @@ void circuit_expire_unused_circuits(void) {
if(((tmpcirc->timestamp_dirty &&
tmpcirc->timestamp_dirty + options.NewCircuitPeriod < now) ||
(options.RunTesting &&
tmpcirc->cpath &&
tmpcirc->timestamp_created + TESTING_CIRCUIT_MAX_AGE < now))
&& !tmpcirc->p_conn
&& !tmpcirc->p_streams