|
|
@ -1519,9 +1519,11 @@ static void drop_subproxies(proxy_instance_t *proxi) |
|
|
|
|
|
|
|
|
|
|
|
mutex_lock(&proxi->proxy_lock); |
|
|
|
mutex_lock(&proxi->proxy_lock); |
|
|
|
HASH_ITER(sh, proxi->subproxies, subproxy, tmp) { |
|
|
|
HASH_ITER(sh, proxi->subproxies, subproxy, tmp) { |
|
|
|
if (!parent_proxy(subproxy)) |
|
|
|
if (!parent_proxy(subproxy)) { |
|
|
|
|
|
|
|
subproxy->disabled = true; |
|
|
|
Close(subproxy->cs->fd); |
|
|
|
Close(subproxy->cs->fd); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
mutex_unlock(&proxi->proxy_lock); |
|
|
|
mutex_unlock(&proxi->proxy_lock); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|