1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Don't let total_queued go below zero.

This commit is contained in:
Con Kolivas 2011-07-18 22:02:10 +10:00
parent 8220af8806
commit 1d27c119b6

3
main.c
View File

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