gitlab #659
Change-Id: Ide954c322f682ff7bc9cbc53e8b5130e0294c9ce
public double handleStep(double currentTime) {
synchronized (this) {
public double handleStep(double currentTime) {
synchronized (this) {
+ if (stopped)
+ return Double.POSITIVE_INFINITY;
+
this.currentTime = currentTime;
{
ArrayList<Function1<Tuple0, Object>> temp = scheduledNow;
this.currentTime = currentTime;
{
ArrayList<Function1<Tuple0, Object>> temp = scheduledNow;
synchronized (this) {
List<Function1<StopReason, Object>> stopFunctions = new ArrayList<>(scheduledWhenStopped);
scheduledWhenStopped.clear();
synchronized (this) {
List<Function1<StopReason, Object>> stopFunctions = new ArrayList<>(scheduledWhenStopped);
scheduledWhenStopped.clear();
+
+ scheduledNextStep.clear();
+ scheduledAt.clear();
SCLContext context = SCLContext.getCurrent();
Object oldActionContext = context.put("sequenceAction", this);
SCLContext context = SCLContext.getCurrent();
Object oldActionContext = context.put("sequenceAction", this);