Browse Source

Skip subproxies that don't yet have a current workbase when selecting a subscription

master
Con Kolivas 10 years ago
parent
commit
65d9abab0b
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -2462,6 +2462,8 @@ static sdata_t *select_sdata(const ckpool_t *ckp, sdata_t *ckp_sdata)
if (subproxy->dead) if (subproxy->dead)
continue; continue;
if (!subproxy->sdata->current_workbase)
continue;
subproxy_headroom = subproxy->max_clients - subproxy->clients; subproxy_headroom = subproxy->max_clients - subproxy->clients;
proxy->headroom += subproxy_headroom; proxy->headroom += subproxy_headroom;

Loading…
Cancel
Save