Browse Source

Only do_avalon_close once on multiple errors.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
809fec91a6
  1. 1
      driver-avalon.c

1
driver-avalon.c

@ -939,7 +939,6 @@ static int64_t avalon_scanhash(struct thr_info *thr)
applog(LOG_ERR, applog(LOG_ERR,
"AVA%i: FPGA controller mess up", avalon->device_id); "AVA%i: FPGA controller mess up", avalon->device_id);
dev_error(avalon, REASON_DEV_COMMS_ERROR); dev_error(avalon, REASON_DEV_COMMS_ERROR);
do_avalon_close(thr);
sleep(1); sleep(1);
avalon_init(avalon); avalon_init(avalon);
return 0; return 0;

Loading…
Cancel
Save