mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 08:15:35 +00:00
update internal ping every second while syncing
This commit is contained in:
parent
8664522d1d
commit
b81ac35b37
@ -37,8 +37,10 @@ void TPPSMonitor::operator()() {
|
|||||||
V += c->GetCarCount();
|
V += c->GetCarCount();
|
||||||
}
|
}
|
||||||
// kick on "no ping"
|
// kick on "no ping"
|
||||||
if (c->SecondsSinceLastPing() > 10) {
|
if (c->SecondsSinceLastPing() > 10 && c->IsSynced()) {
|
||||||
TimedOutClients.push_back(c);
|
TimedOutClients.push_back(c);
|
||||||
|
} else if (!c->IsSynced()) {
|
||||||
|
c->UpdatePingTime();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user