diff --git a/Base/JackrabbitOliverTwist b/Base/JackrabbitOliverTwist index 5ec96d7..29d585f 100755 --- a/Base/JackrabbitOliverTwist +++ b/Base/JackrabbitOliverTwist @@ -387,14 +387,13 @@ def main(): ReceiveOrphans('Conditional') while True: + ReceiveOrphans() # Dynamic factor for memory timeouts OliverTwistCount=len(OrphanList) # Deleted will break the system otherwise. keyList=list(OrphanList.keys()) for cur in keyList: - ReceiveOrphans() - # Process each order ProcessChild(OrphanList[cur]) @@ -404,6 +403,8 @@ def main(): # Only allow "NumberProcesses" children to run as once. + ReceiveOrphans() + while interceptor.GetChildren()>(NumberProcesses-1): JRRsupport.ElasticSleep(1)