remove useless code when reading response
This commit is contained in:
parent
7cf24586c2
commit
7d04f0ee75
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ void McClient::readBytesExactFromSocket(QByteArray &resp, int bytesToRead) {
|
||||||
throw Exception("Read timeout or error");
|
throw Exception("Read timeout or error");
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray chunk = socket.read(qMin(bytesToRead, socket.bytesAvailable()));
|
QByteArray chunk = socket.read(bytesToRead);
|
||||||
resp.append(chunk);
|
resp.append(chunk);
|
||||||
bytesToRead -= chunk.size();
|
bytesToRead -= chunk.size();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue