Browse Source

Only dec worker if user is set

master
Con Kolivas 10 years ago
parent
commit
8502036c5d
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -1686,7 +1686,8 @@ static void _dec_instance_ref(sdata_t *sdata, stratum_instance_t *client, const
LOGERR("Instance ref count dropped below zero from %s %s:%d", file, func, line); LOGERR("Instance ref count dropped below zero from %s %s:%d", file, func, line);
if (dropped) { if (dropped) {
dec_worker(sdata->ckp, user); if (user)
dec_worker(sdata->ckp, user);
reap_proxies(sdata->ckp, sdata); reap_proxies(sdata->ckp, sdata);
} }
} }

Loading…
Cancel
Save