mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-17 16:05:42 -04:00
Do not timeout after just 3000ms
Keep the network default timeout
This commit is contained in:
parent
fef8ee2d1b
commit
3a9c030982
@ -16,13 +16,13 @@ QJsonObject McClient::getStatusDataBlocking() {
|
||||
qDebug() << "Connecting to socket..";
|
||||
socket.connectToHost(ip, port);
|
||||
|
||||
if (!socket.waitForConnected(3000)) {
|
||||
if (!socket.waitForConnected()) {
|
||||
throw Exception("Failed to connect to socket");
|
||||
}
|
||||
qDebug() << "Connected to socket successfully";
|
||||
sendRequest();
|
||||
|
||||
if (!socket.waitForReadyRead(3000)) {
|
||||
if (!socket.waitForReadyRead()) {
|
||||
throw Exception("Socket didn't send anything to read");
|
||||
}
|
||||
return readResponse();
|
||||
|
Loading…
x
Reference in New Issue
Block a user