issues #851 #852 add while around mg_mgr_poll to process all events before waiting for next frame

This commit is contained in:
Scott Fennell 2019-08-30 11:17:32 -05:00
parent d8717059f5
commit 9d4e0343c4

View File

@ -97,7 +97,7 @@ static void* connectionAttendant (void* arg) {
pthread_mutex_unlock(&S->serviceLock);
return NULL;
} else {
mg_mgr_poll(&S->mgr, 50);
while(mg_mgr_poll(&S->mgr, 50));
}
pthread_mutex_unlock(&S->serviceLock);
}