Fix segfault on startup

This commit is contained in:
Jean Flach 2018-11-16 10:15:00 +01:00 committed by Michael Friedrich
parent 67208c4f07
commit eec1928a0b
1 changed files with 3 additions and 0 deletions

View File

@ -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});