Skip to content

Commit

Permalink
[BUGFIX] Fix stale share display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjones committed Sep 15, 2014
1 parent 4b5c6da commit 231be03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ static bool stratum_handle_response(char *buf) {
err_val = json_object_get(val, "error");
id_val = json_object_get(val, "id");

if (!id_val || json_is_null(id_val) || !res_val)
if (!id_val || json_is_null(id_val) || (jsonrpc_2 ? (!res_val && !err_val) : !res_val))
goto out;

if(jsonrpc_2) {
Expand Down

0 comments on commit 231be03

Please sign in to comment.