Fixes sem leak

This commit is contained in:
David Vossel 2013-07-22 18:21:23 -05:00
parent 1462e80af4
commit c73f2aa5cc

View File

@ -249,7 +249,7 @@ qb_log_thread_stop(void)
for (;;) {
res = sem_getvalue(&logt_print_finished, &value);
if (res != 0 || value == 0) {
return;
break;
}
sem_wait(&logt_print_finished);