summaryrefslogtreecommitdiff
path: root/timer_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'timer_thread.c')
-rw-r--r--timer_thread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/timer_thread.c b/timer_thread.c
index d38122b..5a22c49 100644
--- a/timer_thread.c
+++ b/timer_thread.c
@@ -84,6 +84,11 @@ void cTimerThread::Action(void)
}
while (m_Active)
{
+ if (!Running())
+ {
+ m_Active=false;
+ break;
+ }
if (Timers.BeingEdited())
{
sleepSec(1);