mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Fix segfault on startup
This commit is contained in:
parent
67208c4f07
commit
eec1928a0b
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue