Fixed a voice issue

This commit is contained in:
WolverinDEV 2019-11-09 02:20:54 +01:00
parent 971a84105b
commit 3e88ae46b6

View File

@ -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);
}
}