mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 06:16:04 +00:00
update ping time on any packet, not just ping packets, for now
This commit is contained in:
@@ -37,12 +37,13 @@ void TPPSMonitor::operator()() {
|
||||
C++;
|
||||
V += c->GetCarCount();
|
||||
}
|
||||
// kick on "no ping"
|
||||
if (c->SecondsSinceLastPing() > 10 && c->IsSynced()) {
|
||||
TimedOutClients.push_back(c);
|
||||
} else if (!c->IsSynced()) {
|
||||
if (!c->IsSynced() || c->IsSyncing()) {
|
||||
c->UpdatePingTime();
|
||||
}
|
||||
// kick on "no ping"
|
||||
if (c->SecondsSinceLastPing() > 10 && c->IsSynced() && !c->IsSyncing()) {
|
||||
TimedOutClients.push_back(c);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user