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

Only stratum pools that are idle need to be kicked via cnx_needed.

This commit is contained in:
Con Kolivas 2012-12-10 11:03:50 +11:00
parent c70a2658c8
commit 1922e498e3

View File

@ -4507,8 +4507,8 @@ static bool cnx_needed(struct pool *pool)
if (pool_strategy == POOL_LOADBALANCE) if (pool_strategy == POOL_LOADBALANCE)
return true; return true;
/* Idle pool needs something to kick it alive again */ /* Idle stratum pool needs something to kick it alive again */
if (pool->idle) if (pool->has_stratum && pool->idle)
return true; return true;
/* Getwork pools without opt_fail_only need backup pools up to be able /* Getwork pools without opt_fail_only need backup pools up to be able