fix: dictserver connect timeout change to 2 seconds

This commit is contained in:
YiFang Xiao 2023-11-07 20:54:02 +08:00
parent 2bcf4890db
commit dd4812f086

View file

@ -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;
} }