mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7331 from Icinga/bugfix/unit-tests-packaging-7327
Shutdown timers cleanly on exit
This commit is contained in:
commit
71cf491a3b
|
@ -1,5 +1,6 @@
|
||||||
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
||||||
|
|
||||||
|
#include "base/defer.hpp"
|
||||||
#include "base/timer.hpp"
|
#include "base/timer.hpp"
|
||||||
#include "base/debug.hpp"
|
#include "base/debug.hpp"
|
||||||
#include "base/logger.hpp"
|
#include "base/logger.hpp"
|
||||||
|
@ -57,6 +58,8 @@ static bool l_StopTimerThread;
|
||||||
static TimerSet l_Timers;
|
static TimerSet l_Timers;
|
||||||
static int l_AliveTimers = 0;
|
static int l_AliveTimers = 0;
|
||||||
|
|
||||||
|
static Defer l_ShutdownTimersCleanlyOnExit (&Timer::Uninitialize);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor for the Timer class.
|
* Destructor for the Timer class.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue