Browse Source

Never abort startup just because we have no devices (there may be cases this is pointless, but at least it's consistent)

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

+ 1 - 12
miner.c

@@ -11122,22 +11122,11 @@ int main(int argc, char *argv[])
 		register_device(devices[i]);
 
 	if (!total_devices) {
-		const bool netdev_support =
-#ifdef USE_LIBMICROHTTPD
-			(httpsrv_port != -1) ||
-#endif
-#ifdef USE_LIBEVENT
-			(stratumsrv_port != -1) ||
-#endif
-			false;
-		if ((!netdev_support) && (!use_curses) && !opt_api_listen)
-			quit(1, "All devices disabled, cannot mine!");
 		applog(LOG_WARNING, "No devices detected!");
 		if (use_curses)
 			applog(LOG_WARNING, "Waiting for devices; press 'M+' to add, or 'Q' to quit");
 		else
-			applog(LOG_WARNING, "Waiting for %s or press Ctrl-C to quit",
-		       netdev_support ? "network devices" : "RPC commands");
+			applog(LOG_WARNING, "Waiting for devices");
 	}
 
 	load_temp_config();