diff --git a/src/sentinel.c b/src/sentinel.c index da0a400d..0d1eb78a 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -3387,6 +3387,8 @@ void sentinelCheckSubjectivelyDown(sentinelRedisInstance *ri) { if (ri->link->act_ping_time) elapsed = mstime() - ri->link->act_ping_time; + else if (ri->link->disconnected) + elapsed = mstime() - ri->link->last_avail_time; /* Check if we are in need for a reconnection of one of the * links, because we are detecting low activity.