Fix bug trying to switch to an unknown connection.

This commit is contained in:
Daniele Alessandri
2016-05-19 17:42:51 +02:00
parent 7e4800010a
commit 18e846c2ad
@@ -570,7 +570,7 @@ class SentinelReplication implements ReplicationInterface
$connection = $this->getConnectionById($connection);
}
if ($connection === $this->current) {
if ($connection && $connection === $this->current) {
return;
}