diff --git a/cpu-miner.c b/cpu-miner.c index 1ad105d..1003fe9 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -410,6 +410,12 @@ static bool get_upstream_work(CURL *curl, struct work *work) want_longpoll, false, NULL); gettimeofday(&tv_end, NULL); + if (have_stratum) { + if (val) + json_decref(val); + return true; + } + if (!val) return false;