From 4aa1c3718e8be9dab6e68604a157e14da8d5403d Mon Sep 17 00:00:00 2001 From: pooler Date: Mon, 10 Jun 2013 10:42:13 +0200 Subject: [PATCH] Ignore getwork errors when switching to Stratum --- cpu-miner.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;