Browse Source

Bugfix: bitforce: Ensure "OK" doesn't remain in queued results buffer

Luke Dashjr 13 years ago
parent
commit
9d55c9e7f9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      driver-bitforce.c

+ 3 - 0
driver-bitforce.c

@@ -700,7 +700,10 @@ void bitforce_job_get_results(struct thr_info *thr, struct work *work)
 			{
 			{
 				BFgets(pmorebuf, szleft, fdDev);
 				BFgets(pmorebuf, szleft, fdDev);
 				if (!strncasecmp(pmorebuf, "OK", 2))
 				if (!strncasecmp(pmorebuf, "OK", 2))
+				{
+					pmorebuf[0] = '\0';  // process expects only results
 					break;
 					break;
+				}
 				sz = strlen(pmorebuf);
 				sz = strlen(pmorebuf);
 				szleft -= sz;
 				szleft -= sz;
 				pmorebuf += sz;
 				pmorebuf += sz;