From dabf328ed37482806f692417e69dfd176ff6ebe7 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 23 May 2023 20:32:20 +0200 Subject: [PATCH] Revert "Utils: portOpen: additional error logging" This reverts commit 7e8931038651c0e31cfd00ff35bab217be051e31. --- src/utils/Utils.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 75b5280..dce7875 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; }