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