Fixed a voice issue
This commit is contained in:
parent
971a84105b
commit
3e88ae46b6
@ -306,6 +306,7 @@ void VoiceIOManager::dispatchBase(shared_ptr<IOEventLoop> self) {
|
||||
{
|
||||
/* wait until reschedule */
|
||||
unique_lock<mutex> execute_lock(this->executorLock);
|
||||
if(event_base_get_num_events(self->base, EVENT_BASE_COUNT_ACTIVE | EVENT_BASE_COUNT_ADDED | EVENT_BASE_COUNT_VIRTUAL) == 0)
|
||||
this->ioExecutorNotify.wait(execute_lock);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user