mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Allow to pass timeout to obtainNextWorkingUrl
Sometimes timeout for news in launcher, needs to be investigated
This commit is contained in:
committed by
Mathew Sutcliffe
parent
f7c4292695
commit
640ad99520
@@ -88,6 +88,7 @@ namespace BlackMisc
|
||||
|
||||
bool CNetworkUtils::canConnect(const QString &hostAddress, int port, QString &message, int timeoutMs)
|
||||
{
|
||||
if (timeoutMs < 0) { timeoutMs = getTimeoutMs(); } // external functions might call with -1
|
||||
QTcpSocket socket;
|
||||
QSignalMapper mapper;
|
||||
QObject::connect(&socket, &QTcpSocket::connected, &mapper, QOverload<>::of(&QSignalMapper::map));
|
||||
|
||||
Reference in New Issue
Block a user