Browse Source

Only dec worker if user exists

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

2
src/stratifier.c

@ -1381,7 +1381,7 @@ static void _dec_instance_ref(sdata_t *sdata, stratum_instance_t *client, const
if (unlikely(ref < 0)) if (unlikely(ref < 0))
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 && user)
dec_worker(ckp, user); dec_worker(ckp, user);
} }

Loading…
Cancel
Save