mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-21 07:46:54 +00:00
attempt to fix mass timeout kick
This commit is contained in:
1 parent
1875c8832d
commit
e35d1b5457
2 files changed
+2
-3
No files matched your search
+1
-2
@@ -76,8 +76,6 @@ void TServer::GlobalParser(const std::weak_ptr<TClient>& Client, std::string Pac
|
||||
return;
|
||||
}
|
||||
auto LockedClient = Client.lock();
|
||||
// FIXME: this should not be needed here
|
||||
LockedClient->UpdatePingTime();
|
||||
|
||||
std::any Res;
|
||||
char Code = Packet.at(0);
|
||||
@@ -98,6 +96,7 @@ void TServer::GlobalParser(const std::weak_ptr<TClient>& Client, std::string Pac
|
||||
case 'p':
|
||||
Network.Respond(*LockedClient, ("p"), false);
|
||||
Network.UpdatePlayer(*LockedClient);
|
||||
LockedClient->UpdatePingTime();
|
||||
return;
|
||||
case 'O':
|
||||
if (Packet.length() > 1000) {
|
||||
|
||||
Reference in new issue
Block a user