Wake the global work scheduler when we remove a work item from the unqueued work pointer.
diff --git a/cgminer.c b/cgminer.c
index e6e9dcd..dc40c91 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -6377,6 +6377,7 @@ struct work *get_queued(struct cgpu_info *cgpu)
if (unlikely(stale_work(work, false))) {
discard_work(work);
work = NULL;
+ wake_gws();
goto out_unlock;
}
__add_queued(cgpu, work);