summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Interpreter.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-27 16:46:22 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-27 16:46:22 (GMT)
commit24d5c93edd48e7ec2db37cce22b1f98b19adc78b (patch)
treeaf4f87d6a72c08d8276733b7e6f39ef9ed143d5e /src/uscxml/Interpreter.cpp
parentf11664454a92cd6df193f665fa8d7f2f81d2e06d (diff)
downloaduscxml-24d5c93edd48e7ec2db37cce22b1f98b19adc78b.zip
uscxml-24d5c93edd48e7ec2db37cce22b1f98b19adc78b.tar.gz
uscxml-24d5c93edd48e7ec2db37cce22b1f98b19adc78b.tar.bz2
Some more final touches for PHP
Diffstat (limited to 'src/uscxml/Interpreter.cpp')
-rw-r--r--src/uscxml/Interpreter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp
index 16b3209..8e9165e 100644
--- a/src/uscxml/Interpreter.cpp
+++ b/src/uscxml/Interpreter.cpp
@@ -355,6 +355,13 @@ void Interpreter::interpret() {
// assert(hasLegalConfiguration());
mainEventLoop();
+ if (_parentQueue) {
+ // send one final event to unblock eventual listeners
+ Event quit;
+ quit.name = "done.state.scxml";
+ _parentQueue->push(quit);
+ }
+
// set datamodel to null from this thread
if(_dataModel)
_dataModel = DataModel();