mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
bugfix: it was expiring circuits that still had active connections
svn:r303
This commit is contained in:
parent
430545432f
commit
dfa64b61ed
@ -621,7 +621,7 @@ void circuit_expire_unused_circuits(void) {
|
||||
while(circ) {
|
||||
tmpcirc = circ;
|
||||
circ = circ->next;
|
||||
if(tmpcirc != youngest && !tmpcirc->p_conn) {
|
||||
if(tmpcirc != youngest && !tmpcirc->p_conn && !tmpcirc->p_streams) {
|
||||
log(LOG_DEBUG,"circuit_expire_unused_circuits(): Closing n_aci %d",tmpcirc->n_aci);
|
||||
circuit_close(tmpcirc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user