mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
e5566a6bd8
commit
62a6d5667d
@ -324,6 +324,11 @@ mainloop:
|
||||
UninitializeBase();
|
||||
}
|
||||
|
||||
bool Application::IsShuttingDown(void)
|
||||
{
|
||||
return m_ShuttingDown;
|
||||
}
|
||||
|
||||
void Application::OnShutdown(void)
|
||||
{
|
||||
/* Nothing to do here. */
|
||||
|
@ -73,6 +73,8 @@ public:
|
||||
static void RequestRestart(void);
|
||||
static void RequestReopenLogs(void);
|
||||
|
||||
static bool IsShuttingDown(void);
|
||||
|
||||
static void SetDebuggingSeverity(LogSeverity severity);
|
||||
static LogSeverity GetDebuggingSeverity(void);
|
||||
|
||||
|
@ -430,7 +430,7 @@ bool DbConnection::GetStatusUpdate(const DbObject::Ptr& dbobj) const
|
||||
|
||||
void DbConnection::UpdateObject(const ConfigObject::Ptr& object)
|
||||
{
|
||||
if (!GetConnected())
|
||||
if (!GetConnected() || Application::IsShuttingDown())
|
||||
return;
|
||||
|
||||
DbObject::Ptr dbobj = DbObject::GetOrCreateByObject(object);
|
||||
|
Loading…
x
Reference in New Issue
Block a user