mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
We shouldn't be deleting lp_staged value on dec_staged. It prevents detecting get_work failures.
This commit is contained in:
parent
23e4add229
commit
32221c4574
2
main.c
2
main.c
@ -940,8 +940,6 @@ static void inc_staged(int inc, bool lp)
|
|||||||
static void dec_staged(int inc)
|
static void dec_staged(int inc)
|
||||||
{
|
{
|
||||||
pthread_mutex_lock(&stgd_lock);
|
pthread_mutex_lock(&stgd_lock);
|
||||||
if (lp_staged)
|
|
||||||
lp_staged -= inc;
|
|
||||||
total_staged -= inc;
|
total_staged -= inc;
|
||||||
pthread_mutex_unlock(&stgd_lock);
|
pthread_mutex_unlock(&stgd_lock);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user