mirror of https://github.com/Icinga/icinga2.git
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
|
||||
void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool runtimeUpdate)
|
||||
{
|
||||
if (!m_Rcon->IsConnected())
|
||||
return;
|
||||
|
||||
String typeName = GetLowerCaseTypeNameDB(object);
|
||||
|
||||
auto attributes = std::vector<String>({"HMSET", m_PrefixConfigObject + typeName});
|
||||
|
|
Loading…
Reference in New Issue