Browse Source

Bugfix: miner_thread: Don't call cgpu_set_defaults if it has already been called

Luke Dashjr 12 years ago
parent
commit
821a81f371
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deviceapi.c

+ 1 - 1
deviceapi.c

@@ -603,7 +603,7 @@ void *miner_thread(void *userdata)
 	if (cgpu->deven != DEV_ENABLED)
 	if (cgpu->deven != DEV_ENABLED)
 		mt_disable_start(mythr);
 		mt_disable_start(mythr);
 	
 	
-	if (drv_ready(cgpu))
+	if (drv_ready(cgpu) && !cgpu->already_set_defaults)
 		cgpu_set_defaults(cgpu);
 		cgpu_set_defaults(cgpu);
 	
 	
 	thread_reportout(mythr);
 	thread_reportout(mythr);