fix the hanging in the UE during shutdown

This commit is contained in:
Francisco Paisana 2019-05-24 15:06:43 +01:00 committed by Andre Puschmann
parent 4311c3121c
commit 00256f2cd9
1 changed files with 2 additions and 0 deletions

View File

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