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

This commit is contained in:
Daniele Alessandri
2010-04-02 14:15:10 +02:00
parent 4cc43775b0
commit c87fc91fb4
+1
View File
@@ -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);