mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-17 01:37:53 +00:00
Utils: portOpen: additional error logging
This commit is contained in:
parent
f27991b69c
commit
7e89310386
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue