1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 05:43:33 +00:00

fixed bug/typo with child.waitExit() timeout

This commit is contained in:
Bryan Roe
2020-11-04 19:57:56 -08:00
parent ac8441cf3e
commit be4e79941c

View File

@@ -2354,7 +2354,7 @@ ILibExportMethod void ILibChain_Continue(void *Chain, ILibChain_Link **modules,
if (maxTimeout > 0)
{
gettimeofday(&tv, NULL);
if (tv.tv_sec < (startTime.tv_sec + maxTimeout / 1000))
if (tv.tv_sec > (startTime.tv_sec + maxTimeout / 1000))
{
root->continuationState = ILibChain_ContinuationState_END_CONTINUE;
break;