Must unlock mutex after waking up on pthread conditional.
diff --git a/cgminer.c b/cgminer.c
index b71edc0..ea04424 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4029,6 +4029,7 @@ static void wait_lpcurrent(struct pool *pool)
mutex_lock(&lp_lock);
pthread_cond_wait(&lp_cond, &lp_lock);
}
+ mutex_unlock(&lp_lock);
}
static void *longpoll_thread(void *userdata)