mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
update ping time on udp packets
This commit is contained in:
parent
aa72b2507e
commit
942b7baa74
@ -86,6 +86,7 @@ void TNetwork::UDPServerMain() {
|
||||
if (!ClientPtr.expired()) {
|
||||
auto Client = ClientPtr.lock();
|
||||
if (Client->GetID() == ID) {
|
||||
Client->UpdatePingTime();
|
||||
Client->SetUDPAddr(client);
|
||||
Client->SetIsConnected(true);
|
||||
TServer::GlobalParser(ClientPtr, Data.substr(2), mPPSMonitor, *this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user