1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

We shouldn't be deleting lp_staged value on dec_staged. It prevents detecting get_work failures.

This commit is contained in:
Con Kolivas 2011-07-15 09:39:29 +10:00
parent 23e4add229
commit 32221c4574

2
main.c
View File

@ -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);
}