Browse Source

Set subproxies to disabled when dropping them

master
Con Kolivas 10 years ago
parent
commit
b7680263aa
  1. 4
      src/generator.c

4
src/generator.c

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

Loading…
Cancel
Save