Эх сурвалжийг харах

Fix bug trying to switch to an unknown connection.

Daniele Alessandri 9 жил өмнө
parent
commit
18e846c2ad

+ 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;
         }