1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Check for correct absence of opt_fail_only in cnx_needed.

This commit is contained in:
Con Kolivas 2012-12-03 16:16:00 +11:00
parent 4b28c8595b
commit 289d6807ef

View File

@ -4694,12 +4694,10 @@ static bool cnx_needed(struct pool *pool)
return true; return true;
if (pool_strategy == POOL_LOADBALANCE) if (pool_strategy == POOL_LOADBALANCE)
return true; return true;
if (opt_fail_only)
return true;
cp = current_pool(); cp = current_pool();
if (cp == pool) if (cp == pool)
return true; return true;
if (!cp->has_gbt && !cp->has_stratum) if (!cp->has_gbt && !cp->has_stratum && !opt_fail_only)
return true; return true;
return false; return false;
} }