We shouldn't be deleting lp_staged value on dec_staged. It prevents detecting get_work failures.
diff --git a/main.c b/main.c
index b3ad994..77668b1 100644
--- a/main.c
+++ b/main.c
@@ -940,8 +940,6 @@ static void inc_staged(int inc, bool lp)
static void dec_staged(int inc)
{
pthread_mutex_lock(&stgd_lock);
- if (lp_staged)
- lp_staged -= inc;
total_staged -= inc;
pthread_mutex_unlock(&stgd_lock);
}