Browse Source

total_queued should always be >= total_staged

Con Kolivas 14 years ago
parent
commit
5a861bf1e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -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);