diff --git a/src/sentinel.c b/src/sentinel.c index f581fd8de..a56cd8b15 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -2320,8 +2320,8 @@ void sentinelFlushConfig(void) { return; werr: - if (fd != -1) close(fd); serverLog(LL_WARNING,"WARNING: Sentinel was not able to save the new configuration on disk!!!: %s", strerror(errno)); + if (fd != -1) close(fd); } /* ====================== hiredis connection handling ======================= */