mirror of
https://github.com/predis/predis.git
synced 2026-09-05 07:16:44 +00:00
Fix bug trying to switch to an unknown connection.
This commit is contained in:
@@ -570,7 +570,7 @@ class SentinelReplication implements ReplicationInterface
|
||||
$connection = $this->getConnectionById($connection);
|
||||
}
|
||||
|
||||
if ($connection === $this->current) {
|
||||
if ($connection && $connection === $this->current) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user