mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-02 16:06:35 +00:00
send ping with every server message
This commit is contained in:
parent
ab5b87aad8
commit
503f2822d2
@ -33,9 +33,6 @@ void Launcher::HandleIPC(const std::string& Data) {
|
||||
break;
|
||||
case 'U':
|
||||
SendIPC("Ul" + ServerHandler.getUIStatus());
|
||||
if (ServerHandler.getPing() > 800) {
|
||||
SendIPC("Up-2");
|
||||
} else SendIPC("Up" + std::to_string(ServerHandler.getPing()));
|
||||
break;
|
||||
case 'M':
|
||||
SendIPC(ServerHandler.getMap());
|
||||
@ -89,4 +86,7 @@ void Server::ServerParser(const std::string& Data) {
|
||||
break;
|
||||
}
|
||||
LauncherInstance->SendIPC(Data, false);
|
||||
if (getPing() > 800) {
|
||||
LauncherInstance->SendIPC("Up-2");
|
||||
} else LauncherInstance->SendIPC("Up" + std::to_string(getPing()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user