mirror of
https://github.com/Icinga/icinga2.git
synced 2025-06-30 18:34:29 +02:00
Fix segfault on startup
This commit is contained in:
parent
67208c4f07
commit
eec1928a0b
@ -153,6 +153,9 @@ static ConfigObject::Ptr GetObjectByName(const String& name)
|
|||||||
// Used to update a single object, used for runtime updates
|
// Used to update a single object, used for runtime updates
|
||||||
void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool runtimeUpdate)
|
void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool runtimeUpdate)
|
||||||
{
|
{
|
||||||
|
if (!m_Rcon->IsConnected())
|
||||||
|
return;
|
||||||
|
|
||||||
String typeName = GetLowerCaseTypeNameDB(object);
|
String typeName = GetLowerCaseTypeNameDB(object);
|
||||||
|
|
||||||
auto attributes = std::vector<String>({"HMSET", m_PrefixConfigObject + typeName});
|
auto attributes = std::vector<String>({"HMSET", m_PrefixConfigObject + typeName});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user