Only set lagging flag once there are no staged work items.
diff --git a/cgminer.c b/cgminer.c
index a220e6e..89db177 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2417,7 +2417,7 @@ retry:
ret_work->queued = true;
} else {
- if (ts <= opt_queue)
+ if (!ts)
lagging = true;
pool = ret_work->pool = select_pool(lagging);