diff --git a/src/sentinel.c b/src/sentinel.c index 9ab91d0b..b963da10 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -2069,6 +2069,7 @@ int sentinelSendHello(sentinelRedisInstance *ri) { /* Try to obtain our own IP address. */ if (anetSockName(ri->cc->c.fd,ip,sizeof(ip),NULL) == -1) return REDIS_ERR; + if (ri->flags & SRI_DISCONNECTED) return; /* Format and send the Hello message. */ snprintf(payload,sizeof(payload),