Browse Source

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

Con Kolivas 12 years ago
parent
commit
185cac3ee9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cgminer.c

+ 2 - 0
cgminer.c

@@ -5821,6 +5821,7 @@ static void hash_sole_work(struct thr_info *mythr)
 		} while (!abandon_work(work, &wdiff, cgpu->max_hashes));
 		} while (!abandon_work(work, &wdiff, cgpu->max_hashes));
 		free_work(work);
 		free_work(work);
 	}
 	}
+	cgpu->deven = DEV_DISABLED;
 }
 }
 
 
 /* Create a hashtable of work items for devices with a queue. The device
 /* 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);
 			drv->flush_work(cgpu);
 		}
 		}
 	}
 	}
+	cgpu->deven = DEV_DISABLED;
 }
 }
 
 
 void *miner_thread(void *userdata)
 void *miner_thread(void *userdata)