summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Interpreter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/Interpreter.cpp')
-rw-r--r--src/uscxml/Interpreter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp
index 3e4171e..12f1c32 100644
--- a/src/uscxml/Interpreter.cpp
+++ b/src/uscxml/Interpreter.cpp
@@ -924,6 +924,10 @@ InterpreterState InterpreterImpl::step(int waitForMS) {
return _state;
}
+ if (_state == USCXML_FINISHED || _state == USCXML_DESTROYED) {
+ return _state;
+ }
+
setInterpreterState(USCXML_MACROSTEPPED);
}