mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-04 23:06:08 +00:00
add print on ping
This commit is contained in:
committed by
Anonymous275
parent
e04a569e33
commit
32038046d5
@@ -44,6 +44,7 @@ void TPPSMonitor::operator()() {
|
||||
for (auto& ClientToKick : TimedOutClients) {
|
||||
TCPServer().ClientKick(*ClientToKick, "Timeout (no ping for >10 seconds)");
|
||||
}
|
||||
TimedOutClients.clear();
|
||||
if (C == 0 || mInternalPPS == 0) {
|
||||
Application::SetPPS("-");
|
||||
} else {
|
||||
|
||||
@@ -95,6 +95,7 @@ void TServer::GlobalParser(std::weak_ptr<TClient> Client, std::string Packet, TP
|
||||
TCPServer.Respond(*LockedClient, ("p"), false);
|
||||
TCPServer.UpdatePlayer(*LockedClient);
|
||||
LockedClient->UpdatePingTime();
|
||||
debug("ping received from " + LockedClient->GetName());
|
||||
return;
|
||||
case 'O':
|
||||
if (Packet.length() > 1000) {
|
||||
|
||||
Reference in New Issue
Block a user