Browse Source

Bugfix: Restore 2-minutes-past-last-work wait before terminating unused stratum connections

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

+ 1 - 1
miner.c

@@ -6623,7 +6623,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