Browse Source

Don't even show 'Attempting to restart' for devices that don't support it

Luke Dashjr 12 years ago
parent
commit
00ec83fed1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -7191,7 +7191,7 @@ static void *watchdog_thread(void __maybe_unused *userdata)
 					applog(LOG_ERR, "Will not attempt to auto-restart it.");
 				} else
 #endif
-				if (opt_restart) {
+				if (opt_restart && cgpu->drv->reinit_device) {
 					applog(LOG_ERR, "%s: Attempting to restart", dev_str);
 					reinit_device(cgpu);
 				}