more work on new events2-based apps.
This commit is contained in:
@@ -72,9 +72,7 @@ AQH_MESSAGE *AQH_IpcEndpoint_WaitForResponseMsg(AQH_OBJECT *ipcEndpoint, uint32_
|
||||
AQH_MESSAGE *msg;
|
||||
time_t now;
|
||||
|
||||
AQH_EventLoop_Run(AQH_Object_GetEventLoop(ipcEndpoint), 500);
|
||||
msg=AQH_Endpoint_GetNextMsgIn(ipcEndpoint);
|
||||
if (msg) {
|
||||
while( (msg=AQH_Endpoint_GetNextMsgIn(ipcEndpoint)) ) {
|
||||
if (refMsgId==0 || refMsgId==AQH_IpcMessage_GetRefMsgId(msg))
|
||||
return msg;
|
||||
else {
|
||||
@@ -91,6 +89,7 @@ AQH_MESSAGE *AQH_IpcEndpoint_WaitForResponseMsg(AQH_OBJECT *ipcEndpoint, uint32_
|
||||
DBG_INFO(NULL, "Timeout");
|
||||
break;
|
||||
}
|
||||
AQH_EventLoop_Run(AQH_Object_GetEventLoop(ipcEndpoint), 500);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user