From 8502036c5d5fefa0d003873740170056b2268faa Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 24 Feb 2015 10:32:08 +1100 Subject: [PATCH] Only dec worker if user is set --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 9e2011ec..dd129bf7 100644 --- a/src/stratifier.c +++ b/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); if (dropped) { - dec_worker(sdata->ckp, user); + if (user) + dec_worker(sdata->ckp, user); reap_proxies(sdata->ckp, sdata); } }