diff --git a/src/networking.c b/src/networking.c index bf16559a..82799ab1 100644 --- a/src/networking.c +++ b/src/networking.c @@ -667,7 +667,7 @@ void freeClient(redisClient *c) { } /* Log link disconnection with slave */ - if (c->flags & REDIS_SLAVE) { + if ((c->flags & REDIS_SLAVE) && !(c->flags & REDIS_MONITOR)) { char ip[REDIS_IP_STR_LEN]; if (anetPeerToString(c->fd,ip,sizeof(ip),NULL) != -1) {