Browse Source

Bugfix: bitforce: Zero hashes complete if we get an invalid response

Luke Dashjr 13 years ago
parent
commit
6090183e6c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-bitforce.c

+ 2 - 0
driver-bitforce.c

@@ -904,6 +904,8 @@ int64_t bitforce_job_process_results(struct thr_info *thr, struct work *work, __
 			pnoncebuf = next_line(pnoncebuf);
 		}
 	}
+	else
+		return 0;
 
 	// FIXME: This might have changed in the meantime (new job start, or broken)
 	return bitforce->nonces * count;