diff --git a/src/TPPSMonitor.cpp b/src/TPPSMonitor.cpp index e817fbf..8cafd6f 100644 --- a/src/TPPSMonitor.cpp +++ b/src/TPPSMonitor.cpp @@ -37,8 +37,10 @@ void TPPSMonitor::operator()() { V += c->GetCarCount(); } // kick on "no ping" - if (c->SecondsSinceLastPing() > 10) { + if (c->SecondsSinceLastPing() > 10 && c->IsSynced()) { TimedOutClients.push_back(c); + } else if (!c->IsSynced()) { + c->UpdatePingTime(); } } return true;