Shutdown timers cleanly on exit

refs #7327
This commit is contained in:
Alexander A. Klimov 2019-07-17 13:35:59 +02:00
parent 2dfd73ab5f
commit 80d976fed6
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#include "base/defer.hpp"
#include "base/timer.hpp"
#include "base/debug.hpp"
#include "base/logger.hpp"
@ -57,6 +58,8 @@ static bool l_StopTimerThread;
static TimerSet l_Timers;
static int l_AliveTimers = 0;
static Defer l_ShutdownTimersCleanlyOnExit (&Timer::Uninitialize);
/**
* Destructor for the Timer class.
*/