mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 16:13:28 +02:00
fix the domain server heartbeat timer
This commit is contained in:
parent
d50a8f6309
commit
eb856095a9
1 changed files with 2 additions and 2 deletions
|
@ -385,11 +385,11 @@ void DomainServer::setupAutomaticNetworking() {
|
|||
qDebug() << "Updating automatic networking setting in domain-server to" << _automaticNetworkingSetting;
|
||||
|
||||
// no matter the auto networking settings we should heartbeat to the data-server every 15s
|
||||
const int DOMAIN_SERVER_DATA_WEB_HEARTBEAT_SECONDS = 15;
|
||||
const int DOMAIN_SERVER_DATA_WEB_HEARTBEAT_MSECS = 15 * 1000;
|
||||
|
||||
QTimer* dataHeartbeatTimer = new QTimer(this);
|
||||
connect(dataHeartbeatTimer, &QTimer::timeout, this, &DomainServer::sendHeartbeatToDataServer);
|
||||
dataHeartbeatTimer->start(DOMAIN_SERVER_DATA_WEB_HEARTBEAT_SECONDS);
|
||||
dataHeartbeatTimer->start(DOMAIN_SERVER_DATA_WEB_HEARTBEAT_MSECS);
|
||||
}
|
||||
|
||||
void DomainServer::loginFailed() {
|
||||
|
|
Loading…
Reference in a new issue