]> granicus.if.org Git - icinga2/commitdiff
Make sure the WQ status timer is stopped properly
authorGunnar Beutner <gunnar@beutner.name>
Sun, 1 Mar 2015 21:25:14 +0000 (22:25 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Sun, 1 Mar 2015 21:25:48 +0000 (22:25 +0100)
refs #8550

lib/base/timer.cpp
lib/base/workqueue.cpp

index dd3d68b4c26fd1d06decb3e1fb27744091bd2d58..89cb3d79fda76ed82363a2f20238d465cd490f88 100644 (file)
@@ -57,7 +57,7 @@ Timer::Timer(void)
  */
 Timer::~Timer(void)
 {
-       Stop();
+       Stop(true);
 }
 
 /**
index a09928e57d70abc52da6477c8dba0a89a85c2ad9..c3259309aee781594011edf6c292c74acc406b8c 100644 (file)
@@ -44,7 +44,7 @@ WorkQueue::WorkQueue(size_t maxItems, int threadCount)
 
 WorkQueue::~WorkQueue(void)
 {
-       m_StatusTimer->Stop();
+       m_StatusTimer->Stop(true);
 
        Join(true);
 }