diff --git a/lib/redis/rediswriter-objects.cpp b/lib/redis/rediswriter-objects.cpp index c85568ff4..5c80d1ad2 100644 --- a/lib/redis/rediswriter-objects.cpp +++ b/lib/redis/rediswriter-objects.cpp @@ -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({"HMSET", m_PrefixConfigObject + typeName});