Commit 185cac3ee9c87f3c0eee536761b9971496763100

Con Kolivas 2013-05-29T23:30:27

Set devices to disabled after they exit the hashing loops to prevent the watchdog thread from trying to act on them.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/cgminer.c b/cgminer.c
index 84ead9e..47d6cc3 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -5821,6 +5821,7 @@ static void hash_sole_work(struct thr_info *mythr)
 		} while (!abandon_work(work, &wdiff, cgpu->max_hashes));
 		free_work(work);
 	}
+	cgpu->deven = DEV_DISABLED;
 }
 
 /* Create a hashtable of work items for devices with a queue. The device
@@ -5993,6 +5994,7 @@ void hash_queued_work(struct thr_info *mythr)
 			drv->flush_work(cgpu);
 		}
 	}
+	cgpu->deven = DEV_DISABLED;
 }
 
 void *miner_thread(void *userdata)