From: tobtoht Date: Tue, 23 May 2023 18:32:20 +0000 (+0200) Subject: Revert "Utils: portOpen: additional error logging" X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=dabf328ed37482806f692417e69dfd176ff6ebe7;p=gamesguru%2Ffeather.git Revert "Utils: portOpen: additional error logging" This reverts commit 7e8931038651c0e31cfd00ff35bab217be051e31. --- diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 75b5280d..dce78751 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -299,11 +299,8 @@ bool portOpen(const QString &hostname, quint16 port) { // TODO: this call should QTcpSocket socket; socket.connectToHost(hostname, port); - bool res = socket.waitForConnected(1000); + bool res = socket.waitForConnected(600); qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed"))); - if (!res) { - qDebug() << "Error: " << socket.error() << " - " << socket.errorString(); - } return res; }