Events.EndSession added, after S640Communication at the end 'End session' is invoked automatically.

This commit is contained in:
Milan Hanajik
2022-01-06 08:00:07 +01:00
parent 4d018a8ba8
commit af13e2f2b4
5 changed files with 54 additions and 7 deletions
+7
View File
@@ -1011,6 +1011,12 @@ namespace TBF.Rig.Sequences
log.InfoFormat("Test {0}: Transition({1}, {2}) returned {3}", testInst.Name, (transitionAfter == null ? "null" : transitionAfter.Name), endContext, rsltTransAfter);
}
}
if (currentTestIx == StateMachine.TestInstances.Length - simultWithEvacuationCount - 1 &&
e.Contains(Event.EndSession))
{
goto save_results;
}
}
if (rsltTransBefore == Event.Error || rsltTransBetween == Event.Error|| e.Contains(Event.Error))
@@ -1218,6 +1224,7 @@ namespace TBF.Rig.Sequences
}
///------------------------------------------------------------------------------------------------------------
/// Cycle or test completed
goto select_cycle_or_test;