|
@@ -76,7 +76,7 @@ void ActiveClient::setAddress(const QHostAddress &address, quint16 port)
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
void ActiveClient::queryError(ServerQuery::Error)
|
|
|
{
|
|
|
- myQueryTimer->start(myQueryInterval);
|
|
|
+// myQueryTimer->start(myQueryInterval);
|
|
|
}
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
@@ -87,7 +87,7 @@ void ActiveClient::queryFinished()
|
|
|
myClient->setPlayerList(playerList);
|
|
|
myClient->setMaxClients(myQuery->serverRuleValue("maxclients").toInt());
|
|
|
|
|
|
- myQueryTimer->start(myQueryInterval);
|
|
|
+// myQueryTimer->start(myQueryInterval);
|
|
|
|
|
|
/* If the client is disconnect check if there is at least one player connected to the server */
|
|
|
if(myClient->state() == Client::DisconnectedState)
|
|
@@ -126,10 +126,11 @@ void ActiveClient::run()
|
|
|
myReplyTimerWasActive = myBroadcastReplyTimer->isActive();
|
|
|
|
|
|
/* Query the serverinfo for player count if not already querying */
|
|
|
- if(!myQuery->isActive() && !myQueryTimer->isActive())
|
|
|
+ if(!myQueryTimer->isActive())
|
|
|
+ {
|
|
|
myQuery->query();
|
|
|
- else
|
|
|
- myQuery->run();
|
|
|
+ myQueryTimer->start(myQueryInterval);
|
|
|
+ }
|
|
|
|
|
|
/* Run the client */
|
|
|
if(myClient->state() != Client::DisconnectedState)
|