Browse Source

Merge commit '18b6c38' into bfgminer

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

+ 1 - 1
miner.c

@@ -8231,7 +8231,7 @@ static bool cnx_needed(struct pool *pool)
 
 	/* Keep the connection open to allow any stray shares to be submitted
 	 * on switching pools for 2 minutes. */
-	if (!timer_passed(&pool->tv_last_work_time, NULL))
+	if (timer_elapsed(&pool->tv_last_work_time, NULL) < 120)
 		return true;
 
 	/* If the pool has only just come to life and is higher priority than