Browse Source

We shouldn't be deleting lp_staged value on dec_staged. It prevents detecting get_work failures.

Con Kolivas 14 years ago
parent
commit
32221c4574
1 changed files with 0 additions and 2 deletions
  1. 0 2
      main.c

+ 0 - 2
main.c

@@ -940,8 +940,6 @@ static void inc_staged(int inc, bool lp)
 static void dec_staged(int inc)
 {
 	pthread_mutex_lock(&stgd_lock);
-	if (lp_staged)
-		lp_staged -= inc;
 	total_staged -= inc;
 	pthread_mutex_unlock(&stgd_lock);
 }