From 925d01922b94e541bcdfbdc342b9670f6b12fe55 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 2 Oct 2012 14:12:34 +1000 Subject: [PATCH] If a share result has an error code but still has an id, it is likely a reject, not an error. --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 3824a509..bda51596 100644 --- a/cgminer.c +++ b/cgminer.c @@ -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)