summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2017-03-08 08:54:55 +0100
committerAndy Shaw <andy.shaw@qt.io>2017-03-08 10:36:35 +0000
commit75cb3ffebcc7c1e617e3ba4b85adb147e30ca36e (patch)
tree792866f008781cc5572b4a643bbbe41730394cd1
parente49fd45c0947d1b24937517c2d170283eadfc501 (diff)
Kill the timer when we no longer need it5.8
Change-Id: I126a3479fe494eca5a616a5754b86bff4cbc022a Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
-rw-r--r--src/scxml/qscxmlstatemachine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scxml/qscxmlstatemachine.cpp b/src/scxml/qscxmlstatemachine.cpp
index dad5bbb..54bdb9b 100644
--- a/src/scxml/qscxmlstatemachine.cpp
+++ b/src/scxml/qscxmlstatemachine.cpp
@@ -305,6 +305,7 @@ void EventLoopHook::timerEvent(QTimerEvent *timerEvent)
QScxmlEvent *scxmlEvent = it->second;
smp->m_delayedEvents.erase(it);
smp->routeEvent(scxmlEvent);
+ killTimer(timerId);
return;
}
}