Increase timeout time
This commit is contained in:
parent
2d17564de3
commit
808385705f
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ void LiveObject::serverAssignReply( QNetworkReply *r ) {
|
|||
d->serverRefreshTime = QDateTime::currentDateTime();
|
||||
QTimer::singleShot(0, this, SLOT(connectToServer()));
|
||||
} else {
|
||||
int timeout = rand() % 40 + 10; //Random timeout from 10-50s to avoid flooding the servers
|
||||
int timeout = rand() % 300 + 60; //Random timeout from 60-6min to avoid flooding the servers
|
||||
emit errorChanged("No servers found");
|
||||
emit statusChanged("Retrying in " + QString::number(timeout) + " seconds...");
|
||||
QTimer::singleShot(timeout * 1000, this, SLOT(connectToServer()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue