Showing the changes to libraries/networking/src/ThreadedAssignment.cpp (1 of 6 files). Show all
Unified · Split
| @@ -67,6 +67,10 @@ void ThreadedAssignment::commonInit(const QString& targetName, NodeType_t nodeTy · 66 unmodified lines | ||
| 67 | 67 | connect(domainServerTimer, SIGNAL(timeout()), this, SLOT(checkInWithDomainServerOrExit())); |
| 68 | 68 | domainServerTimer->start(DOMAIN_SERVER_CHECK_IN_MSECS); |
| 69 | 69 | |
| 70 | + QTimer* silentNodeRemovalTimer = new QTimer(this); | |
| 71 | + connect(silentNodeRemovalTimer, SIGNAL(timeout()), nodeList.data(), SLOT(removeSilentNodes())); | |
| 72 | + silentNodeRemovalTimer->start(NODE_SILENCE_THRESHOLD_MSECS); | |
| 73 | + | |
| 70 | 74 | if (shouldSendStats) { |
| 71 | 75 | // send a stats packet every 1 second |
| 72 | 76 | QTimer* statsTimer = new QTimer(this); |