Bläddra i källkod

Fix bug trying to switch to an unknown connection.

Daniele Alessandri 9 år sedan
förälder
incheckning
18e846c2ad
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Connection/Aggregate/SentinelReplication.php

+ 1 - 1
src/Connection/Aggregate/SentinelReplication.php

@@ -570,7 +570,7 @@ class SentinelReplication implements ReplicationInterface
             $connection = $this->getConnectionById($connection);
         }
 
-        if ($connection === $this->current) {
+        if ($connection && $connection === $this->current) {
             return;
         }