Browse Source

Stratifier loop should never return

master
Con Kolivas 9 years ago
parent
commit
95e1ed04bb
  1. 14
      src/stratifier.c

14
src/stratifier.c

@ -7613,16 +7613,8 @@ void *stratifier(void *arg)
stratum_loop(ckp, pi); stratum_loop(ckp, pi);
out: out:
if (ckp->proxy) { /* We should never get here unless there's a fatal error */
proxy_t *proxy, *tmpproxy; LOGEMERG("Stratifier failure, shutting down");
exit(1);
mutex_lock(&sdata->proxy_lock);
HASH_ITER(hh, sdata->proxies, proxy, tmpproxy) {
HASH_DEL(sdata->proxies, proxy);
dealloc(proxy);
}
mutex_unlock(&sdata->proxy_lock);
}
dealloc(ckp->sdata);
return NULL; return NULL;
} }

Loading…
Cancel
Save