fix the hanging in the UE during shutdown

master
Francisco Paisana 6 years ago committed by Andre Puschmann
parent 4311c3121c
commit 00256f2cd9

@ -173,9 +173,11 @@ private:
pthread_cond_wait(&cv_full, &mutex); pthread_cond_wait(&cv_full, &mutex);
} }
if (!enable) { if (!enable) {
num_threads--;
return false; return false;
} }
} else if (q.size() >= (uint32_t) capacity) { } else if (q.size() >= (uint32_t) capacity) {
num_threads--;
return false; return false;
} }
} }

Loading…
Cancel
Save