From 3a9c03098267fd64a27b9bfe62dddccbdffc6cf0 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Tue, 26 Nov 2024 18:24:46 +0100 Subject: [PATCH] Do not timeout after just 3000ms Keep the network default timeout --- launcher/ui/pages/instance/McClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/ui/pages/instance/McClient.cpp b/launcher/ui/pages/instance/McClient.cpp index ac0c62242..ed46ed03b 100644 --- a/launcher/ui/pages/instance/McClient.cpp +++ b/launcher/ui/pages/instance/McClient.cpp @@ -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();