Skip to content

Commit

Permalink
Ignore getwork errors when switching to Stratum
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Jun 10, 2013
1 parent 7528a95 commit 4aa1c37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4aa1c37

Please sign in to comment.