1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00

total_queued should always be >= total_staged

This commit is contained in:
Con Kolivas 2011-07-19 09:23:04 +10:00
parent 44c975be65
commit 5a861bf1e4

2
main.c
View File

@ -1191,7 +1191,7 @@ static void inc_queued(void)
static void dec_queued(void)
{
pthread_mutex_lock(&qd_lock);
if (total_queued > 0)
if (total_queued > total_staged)
total_queued--;
pthread_mutex_unlock(&qd_lock);
dec_staged(1);