Browse Source

Bugfix: Adjust quota GCD only after completely adding the pool, otherwise it will be ignored by the adjustment

Luke Dashjr 11 years ago
parent
commit
9fa9dd4b35
1 changed files with 2 additions and 1 deletions
  1. 2 1
      miner.c

+ 2 - 1
miner.c

@@ -767,13 +767,14 @@ struct pool *add_pool(void)
 
 	pool->rpc_proxy = NULL;
 	pool->quota = 1;
-	adjust_quota_gcd();
 
 	pool->sock = INVSOCK;
 	pool->lp_socket = CURL_SOCKET_BAD;
 
 	pools = realloc(pools, sizeof(struct pool *) * (total_pools + 2));
 	pools[total_pools++] = pool;
+	
+	adjust_quota_gcd();
 
 	return pool;
 }