From 43ac168a8ea4a75f1df7b2b6d7444b618eedd42c Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Thu, 5 May 2016 13:33:10 +0200 Subject: Fixed first part of issue 68 --- src/uscxml/Interpreter.cpp | 4 ++++ test/src/issues/test-issue68.scxml | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 test/src/issues/test-issue68.scxml diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp index ef7afde..0fa366b 100644 --- a/src/uscxml/Interpreter.cpp +++ b/src/uscxml/Interpreter.cpp @@ -2660,6 +2660,10 @@ void InterpreterImpl::executeContent(const Arabica::DOM::Element& c return; } _sendQueue->cancelEvent(sendId); + { + tthread::lock_guard lock(_sendQueue->_mutex); + _sendIds.erase(sendId); // issue 68 + } } CATCH_AND_DISTRIBUTE2("Syntax error while executing cancel element", content) diff --git a/test/src/issues/test-issue68.scxml b/test/src/issues/test-issue68.scxml new file mode 100644 index 0000000..cd99bc0 --- /dev/null +++ b/test/src/issues/test-issue68.scxml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v0.12