From 75cb3ffebcc7c1e617e3ba4b85adb147e30ca36e Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Wed, 8 Mar 2017 08:54:55 +0100 Subject: Kill the timer when we no longer need it Change-Id: I126a3479fe494eca5a616a5754b86bff4cbc022a Reviewed-by: Ulf Hermann Reviewed-by: Erik Verbruggen --- src/scxml/qscxmlstatemachine.cpp | 1 + 1 file changed, 1 insertion(+) 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; } } -- cgit v1.2.3