Commit 0899ee86aeebebf84a5cecedb23166988763f28a

Con Kolivas 2011-08-24T20:45:30

Only consider pool slow to respond if we can't even roll work.

diff --git a/main.c b/main.c
index f1023f4..fc47182 100644
--- a/main.c
+++ b/main.c
@@ -3128,17 +3128,17 @@ retry:
 	}
 
 	if (!requests_staged()) {
+		if (can_roll(work)) {
+			roll_work(work);
+			ret = true;
+			goto out;
+		}
 		if (requested && !pool_tset(pool, &pool->lagging)) {
 			applog(LOG_WARNING, "Pool %d not providing work fast enough",
 				pool->pool_no);
 			pool->localgen_occasions++;
 			total_lo++;
 		}
-		if (can_roll(work)) {
-			roll_work(work);
-			ret = true;
-			goto out;
-		}
 	}
 
 	requested = false;