소스 검색

Fix bug trying to switch to an unknown connection.

Daniele Alessandri 9 년 전
부모
커밋
18e846c2ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
             $connection = $this->getConnectionById($connection);
         }
         }
 
 
-        if ($connection === $this->current) {
+        if ($connection && $connection === $this->current) {
             return;
             return;
         }
         }