Browse Source

Bugfix: Check that all pools have URIs set before starting

Luke Dashjr 12 years ago
parent
commit
5f5c85b36a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      miner.c

+ 3 - 0
miner.c

@@ -7641,6 +7641,9 @@ int main(int argc, char *argv[])
 		pool->cgminer_stats.getwork_wait_min.tv_sec = MIN_SEC_UNSET;
 		pool->cgminer_stats.getwork_wait_min.tv_sec = MIN_SEC_UNSET;
 		pool->cgminer_pool_stats.getwork_wait_min.tv_sec = MIN_SEC_UNSET;
 		pool->cgminer_pool_stats.getwork_wait_min.tv_sec = MIN_SEC_UNSET;
 
 
+		if (!pool->rpc_url)
+			quit(1, "No URI supplied for pool %u", i);
+		
 		if (!pool->rpc_userpass) {
 		if (!pool->rpc_userpass) {
 			if (!pool->rpc_user || !pool->rpc_pass)
 			if (!pool->rpc_user || !pool->rpc_pass)
 				quit(1, "No login credentials supplied for pool %u %s", i, pool->rpc_url);
 				quit(1, "No login credentials supplied for pool %u %s", i, pool->rpc_url);