Browse Source

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

nfactor-troky
Con Kolivas 14 years ago
parent
commit
32221c4574
  1. 2
      main.c

2
main.c

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

Loading…
Cancel
Save