Browse Source

Don't let total_queued go below zero.

nfactor-troky
Con Kolivas 14 years ago
parent
commit
1d27c119b6
  1. 3
      main.c

3
main.c

@ -1191,7 +1191,8 @@ static void inc_queued(void) @@ -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);
}

Loading…
Cancel
Save