mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-21 09:08:41 +02:00
Utils: portOpen: additional error logging
This commit is contained in:
+4
-1
@@ -299,8 +299,11 @@ bool portOpen(const QString &hostname, quint16 port) { // TODO: this call should
|
||||
|
||||
QTcpSocket socket;
|
||||
socket.connectToHost(hostname, port, QIODeviceBase::ReadOnly);
|
||||
bool res = socket.waitForConnected(600);
|
||||
bool res = socket.waitForConnected(1000);
|
||||
qDebug() << QString("Port " + (res ? QString("Open") : QString("Closed")));
|
||||
if (!res) {
|
||||
qDebug() << "Error: " << socket.error() << " - " << socket.errorString();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user