|
@@ -6623,7 +6623,7 @@ static bool cnx_needed(struct pool *pool)
|
|
|
|
|
|
|
|
/* Keep the connection open to allow any stray shares to be submitted
|
|
/* Keep the connection open to allow any stray shares to be submitted
|
|
|
* on switching pools for 2 minutes. */
|
|
* 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;
|
|
return true;
|
|
|
|
|
|
|
|
/* If the pool has only just come to life and is higher priority than
|
|
/* If the pool has only just come to life and is higher priority than
|