浏览代码

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);