Commit e64611a2391441758f3e023707e71af755e7005f

Con Kolivas 2014-04-06T14:12:15

Do not do thread shutdown unless thread init succeeded

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/cgminer.c b/cgminer.c
index 91d0a2f..9afee32 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -7707,9 +7707,8 @@ void *miner_thread(void *userdata)
 
 	cgpu->last_device_valid_work = time(NULL);
 	drv->hash_work(mythr);
-out:
 	drv->thread_shutdown(mythr);
-
+out:
 	return NULL;
 }