Browse Source

Delete subproxies from the correct hashlist

master
Con Kolivas 10 years ago
parent
commit
40ebe7d1b0
  1. 2
      src/generator.c

2
src/generator.c

@ -945,7 +945,7 @@ static void disable_subproxy(gdata_t *gdata, proxy_instance_t *proxi, proxy_inst
subproxy = __subproxy_by_id(proxi, subproxy->subid);
if (subproxy) {
Close(subproxy->cs->fd);
HASH_DEL(proxi->subproxies, subproxy);
HASH_DELETE(sh, proxi->subproxies, subproxy);
proxi->client_headroom -= proxi->clients_per_proxy;
}
mutex_unlock(&proxi->proxy_lock);

Loading…
Cancel
Save