Browse Source

Merge branch 'bugfix_icarus_changework_lret' into bfgminer

Luke Dashjr 13 years ago
parent
commit
764a0dc053
1 changed files with 3 additions and 0 deletions
  1. 3 0
      driver-icarus.c

+ 3 - 0
driver-icarus.c

@@ -746,7 +746,10 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
 
 
 	if (!state->firstrun) {
 	if (!state->firstrun) {
 		if (state->changework)
 		if (state->changework)
+		{
 			state->changework = false;
 			state->changework = false;
+			lret = 1;
+		}
 		else
 		else
 		{
 		{
 			/* Icarus will return 4 bytes (ICARUS_READ_SIZE) nonces or nothing */
 			/* Icarus will return 4 bytes (ICARUS_READ_SIZE) nonces or nothing */