mirror of
https://github.com/overte-org/overte.git
synced 2025-07-30 01:00:37 +02:00
Merge pull request #12973 from birarda/bug/no-node-stats
66.1: fix connection to start stats sending for assignments
This commit is contained in:
commit
e6f15c720f
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,8 @@ void ThreadedAssignment::commonInit(const QString& targetName, NodeType_t nodeTy
|
||||||
_domainServerTimer.start();
|
_domainServerTimer.start();
|
||||||
|
|
||||||
// start sending stats packet once we connect to the domain
|
// start sending stats packet once we connect to the domain
|
||||||
connect(&nodeList->getDomainHandler(), SIGNAL(connectedToDomain(const QString&)), &_statsTimer, SLOT(start()));
|
connect(&nodeList->getDomainHandler(), &DomainHandler::connectedToDomain,
|
||||||
|
&_statsTimer, static_cast<void (QTimer::*)()>(&QTimer::start));
|
||||||
|
|
||||||
// stop sending stats if we disconnect
|
// stop sending stats if we disconnect
|
||||||
connect(&nodeList->getDomainHandler(), &DomainHandler::disconnectedFromDomain, &_statsTimer, &QTimer::stop);
|
connect(&nodeList->getDomainHandler(), &DomainHandler::disconnectedFromDomain, &_statsTimer, &QTimer::stop);
|
||||||
|
|
Loading…
Reference in a new issue