mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-13 06:01:03 +00:00
Revert "total_queued should always be >= total_staged"
This reverts commit 5a861bf1e42cc56ad8c6477e5d348f76b09d1363. No good.
This commit is contained in:
parent
cdc72daed9
commit
3a9fd06c42
2
main.c
2
main.c
@ -1191,7 +1191,7 @@ static void inc_queued(void)
|
|||||||
static void dec_queued(void)
|
static void dec_queued(void)
|
||||||
{
|
{
|
||||||
pthread_mutex_lock(&qd_lock);
|
pthread_mutex_lock(&qd_lock);
|
||||||
if (total_queued > total_staged)
|
if (total_queued > 0)
|
||||||
total_queued--;
|
total_queued--;
|
||||||
pthread_mutex_unlock(&qd_lock);
|
pthread_mutex_unlock(&qd_lock);
|
||||||
dec_staged(1);
|
dec_staged(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user