Browse Source

DevAPI: Trigger mt_disable_start after init, if a device is disabled before minerloop starts

Luke Dashjr 12 years ago
parent
commit
a12a057f3a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      deviceapi.c

+ 3 - 0
deviceapi.c

@@ -574,6 +574,9 @@ void *miner_thread(void *userdata)
 		goto out;
 	}
 
+	if (cgpu->deven != DEV_ENABLED)
+		mt_disable_start(mythr);
+	
 	thread_reportout(mythr);
 	applog(LOG_DEBUG, "Popping ping in miner thread");
 	notifier_read(mythr->notifier);  // Wait for a notification to start