mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 14:12:25 +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) {
|
for (auto& ClientToKick : TimedOutClients) {
|
||||||
TCPServer().ClientKick(*ClientToKick, "Timeout (no ping for >10 seconds)");
|
TCPServer().ClientKick(*ClientToKick, "Timeout (no ping for >10 seconds)");
|
||||||
}
|
}
|
||||||
|
TimedOutClients.clear();
|
||||||
if (C == 0 || mInternalPPS == 0) {
|
if (C == 0 || mInternalPPS == 0) {
|
||||||
Application::SetPPS("-");
|
Application::SetPPS("-");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ void TServer::GlobalParser(std::weak_ptr<TClient> Client, std::string Packet, TP
|
|||||||
TCPServer.Respond(*LockedClient, ("p"), false);
|
TCPServer.Respond(*LockedClient, ("p"), false);
|
||||||
TCPServer.UpdatePlayer(*LockedClient);
|
TCPServer.UpdatePlayer(*LockedClient);
|
||||||
LockedClient->UpdatePingTime();
|
LockedClient->UpdatePingTime();
|
||||||
|
debug("ping received from " + LockedClient->GetName());
|
||||||
return;
|
return;
|
||||||
case 'O':
|
case 'O':
|
||||||
if (Packet.length() > 1000) {
|
if (Packet.length() > 1000) {
|
||||||
|
|||||||
Reference in New Issue
Block a user