From 3a9fd06c42b186689ae16f0e8ea3927c13a628d0 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 19 Jul 2011 09:30:17 +1000 Subject: [PATCH] Revert "total_queued should always be >= total_staged" This reverts commit 5a861bf1e42cc56ad8c6477e5d348f76b09d1363. No good. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 67e95863..c1591a8f 100644 --- a/main.c +++ b/main.c @@ -1191,7 +1191,7 @@ static void inc_queued(void) static void dec_queued(void) { pthread_mutex_lock(&qd_lock); - if (total_queued > total_staged) + if (total_queued > 0) total_queued--; pthread_mutex_unlock(&qd_lock); dec_staged(1);