Browse Source

Merge commit 'a529b8a' into bfgminer-2.6.x

Luke Dashjr 13 years ago
parent
commit
0719f75e8c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      miner.c

+ 6 - 0
miner.c

@@ -2874,6 +2874,12 @@ void switch_pools(struct pool *selected)
 	pool->block_id = 0;
 	mutex_unlock(&control_lock);
 
+	/* Set the lagging flag to avoid pool not providing work fast enough
+	 * messages in failover only mode since  we have to get all fresh work
+	 * as in restart_threads */
+	if (opt_fail_only)
+		pool_tset(pool, &pool->lagging);
+
 	if (pool != last_pool)
 		applog(LOG_WARNING, "Switching to %s", pool->rpc_url);