Do not parse the response to a command if we get a QUEUED status reply from the server.

This commit is contained in:
Daniele Alessandri
2009-12-27 23:21:46 +01:00
parent a13d0e4d72
commit 5c95b9cdcc
+2 -2
View File
@@ -572,8 +572,8 @@ class Connection implements IConnection {
public function readResponse(Command $command) {
$socket = $this->getSocket();
$handler = Response::getPrefixHandler(fgetc($socket));
$response = $command->parseResponse($handler($socket));
return $response;
$response = $handler($socket);
return $response !== 'QUEUED' ? $command->parseResponse($response) : $response;
}
public function rawCommand($rawCommandData, $closesConnection = false) {