Browse Source

Merge commit '5f5c85b' into bfgminer

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

+ 3 - 0
miner.c

@@ -8287,6 +8287,9 @@ int main(int argc, char *argv[])
 		pool->cgminer_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_user || !pool->rpc_pass)
 				quit(1, "No login credentials supplied for pool %u %s", i, pool->rpc_url);