Browse Source

Merge commit '99b117b' into cg_merges_20130606a

Conflicts:
	miner.c
Luke Dashjr 12 years ago
parent
commit
6e0f7bcaf3
1 changed files with 2 additions and 5 deletions
  1. 2 5
      miner.c

+ 2 - 5
miner.c

@@ -3493,7 +3493,6 @@ static void __kill_work(void)
 	applog(LOG_DEBUG, "Shutting down mining threads");
 	applog(LOG_DEBUG, "Shutting down mining threads");
 	for (i = 0; i < mining_threads; i++) {
 	for (i = 0; i < mining_threads; i++) {
 		struct cgpu_info *cgpu;
 		struct cgpu_info *cgpu;
-		struct device_drv *drv;
 
 
 		thr = get_thread(i);
 		thr = get_thread(i);
 		if (!thr)
 		if (!thr)
@@ -3503,14 +3502,12 @@ static void __kill_work(void)
 			continue;
 			continue;
 		if (!cgpu->threads)
 		if (!cgpu->threads)
 			continue;
 			continue;
-		drv = cgpu->drv;
-		if (!drv)
-			continue;
 
 
 		cgpu->shutdown = true;
 		cgpu->shutdown = true;
-		drv->thread_shutdown(thr);
 	}
 	}
 
 
+	sleep(1);
+
 	applog(LOG_DEBUG, "Killing off mining threads");
 	applog(LOG_DEBUG, "Killing off mining threads");
 	/* Kill the mining threads*/
 	/* Kill the mining threads*/
 	for (i = 0; i < mining_threads; i++) {
 	for (i = 0; i < mining_threads; i++) {