소스 검색

Bugfix: close the connection on Connection::rawCommand when the parameter is set to TRUE.

Daniele Alessandri 15 년 전
부모
커밋
c87fc91fb4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lib/Predis.php

+ 1 - 0
lib/Predis.php

@@ -836,6 +836,7 @@ class Connection implements IConnection {
            throw new ClientException('An error has occurred while writing a raw command on the network stream');
         }
         if ($closesConnection) {
+            $this->disconnect();
             return;
         }
         return $this->_reader->read($this);