Browse Source

Bugfix: icarus: Don't try to send work if device open failed

Luke Dashjr 12 years ago
parent
commit
d9fd6384b5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      driver-icarus.c

+ 1 - 0
driver-icarus.c

@@ -909,6 +909,7 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
 		if (info->quirk_reopen != 2) {
 			if (!icarus_reopen(icarus, state, &fd))
 				state->firstrun = true;
+			else
 			// Some devices (Cairnsmore1, for example) abort hashing when reopened, so send the job again
 			if (!icarus_start_work(thr, ob_bin))
 				state->firstrun = true;