Browse Source

Merge branch 'stratum' into bfgminer

Luke Dashjr 13 years ago
parent
commit
6606cebd4d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -2387,7 +2387,7 @@ share_result(json_t *val, json_t *res, json_t *err, const struct work *work,
 	struct pool *pool = work->pool;
 	struct pool *pool = work->pool;
 	struct cgpu_info *cgpu = thr_info[work->thr_id].cgpu;
 	struct cgpu_info *cgpu = thr_info[work->thr_id].cgpu;
 
 
-	if (json_is_null(res) || json_is_true(res)) {
+	if ((json_is_null(err) || !err) && (json_is_null(res) || json_is_true(res))) {
 		cgpu->accepted++;
 		cgpu->accepted++;
 		total_accepted++;
 		total_accepted++;
 		pool->accepted++;
 		pool->accepted++;