Browse Source

Bugfix: We should never roll stale work

Luke Dashjr 13 years ago
parent
commit
9bca7cf10c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cgminer.c

+ 3 - 0
cgminer.c

@@ -2289,6 +2289,9 @@ static inline bool should_roll(struct work *work)
 	if (work->pool != current_pool() && pool_strategy != POOL_LOADBALANCE && pool_strategy != POOL_BALANCE)
 	if (work->pool != current_pool() && pool_strategy != POOL_LOADBALANCE && pool_strategy != POOL_BALANCE)
 		return false;
 		return false;
 
 
+	if (stale_work(work, false))
+		return false;
+
 	if (work->rolltime > opt_scantime)
 	if (work->rolltime > opt_scantime)
 		expiry = work->rolltime;
 		expiry = work->rolltime;
 	else
 	else