Explorar o código

Fix bug trying to switch to an unknown connection.

Daniele Alessandri %!s(int64=9) %!d(string=hai) anos
pai
achega
18e846c2ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }