mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
fix: dictserver connect timeout change to 2 seconds
This commit is contained in:
parent
2bcf4890db
commit
dd4812f086
|
@ -63,7 +63,7 @@ bool connectToServer( QTcpSocket & socket, QString const & url, QString & errorS
|
||||||
|
|
||||||
socket.connectToHost( serverUrl.host(), port );
|
socket.connectToHost( serverUrl.host(), port );
|
||||||
if ( socket.state() != QTcpSocket::ConnectedState ) {
|
if ( socket.state() != QTcpSocket::ConnectedState ) {
|
||||||
if ( !socket.waitForConnected( 100 ) )
|
if ( !socket.waitForConnected( 2000 ) )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue