Ignore getwork errors when switching to Stratum
This commit is contained in:
parent
7528a95fe1
commit
4aa1c3718e
1 changed files with 6 additions and 0 deletions
|
@ -410,6 +410,12 @@ static bool get_upstream_work(CURL *curl, struct work *work)
|
||||||
want_longpoll, false, NULL);
|
want_longpoll, false, NULL);
|
||||||
gettimeofday(&tv_end, NULL);
|
gettimeofday(&tv_end, NULL);
|
||||||
|
|
||||||
|
if (have_stratum) {
|
||||||
|
if (val)
|
||||||
|
json_decref(val);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!val)
|
if (!val)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue