Commit 809fec91a62583276b52eaf8265dbc5be4aabe95

Con Kolivas 2013-04-06T18:27:38

Only do_avalon_close once on multiple errors.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-avalon.c b/driver-avalon.c
index 14966b1..8e2953b 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -939,7 +939,6 @@ static int64_t avalon_scanhash(struct thr_info *thr)
 		applog(LOG_ERR,
 		       "AVA%i: FPGA controller mess up", avalon->device_id);
 		dev_error(avalon, REASON_DEV_COMMS_ERROR);
-		do_avalon_close(thr);
 		sleep(1);
 		avalon_init(avalon);
 		return 0;