1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-30 00:14:26 +00:00

If a share result has an error code but still has an id, it is likely a reject, not an error.

This commit is contained in:
Con Kolivas 2012-10-02 14:12:34 +10:00
parent 1b7aa48c8f
commit 925d01922b

View File

@ -4079,7 +4079,7 @@ static bool parse_stratum_response(char *s)
id_val = json_object_get(val, "id");
if ((!res_val || !id_val) || (json_is_null(res_val) || json_is_null(id_val)) ||
(err_val && !json_is_null(err_val))) {
(err_val && !json_is_null(err_val) && !id)) {
char *ss;
if (err_val)