mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-08 11:31:32 -04:00
remove useless code when reading response
This commit is contained in:
parent
7cf24586c2
commit
7d04f0ee75
@ -55,7 +55,7 @@ void McClient::readBytesExactFromSocket(QByteArray &resp, int bytesToRead) {
|
||||
throw Exception("Read timeout or error");
|
||||
}
|
||||
|
||||
QByteArray chunk = socket.read(qMin(bytesToRead, socket.bytesAvailable()));
|
||||
QByteArray chunk = socket.read(bytesToRead);
|
||||
resp.append(chunk);
|
||||
bytesToRead -= chunk.size();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user