Browse Source

Bugfix: stratum_works: If stratum is already active, it works (avoid trying to initialise it again)

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

+ 3 - 0
miner.c

@@ -5884,6 +5884,9 @@ static bool stratum_works(struct pool *pool)
 	if (!extract_sockaddr(pool, pool->stratum_url))
 		return false;
 
+	if (pool->stratum_active)
+		return true;
+	
 	if (!initiate_stratum(pool))
 		return false;