mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-04 00:47:23 +00:00
Connection issues set to 800ms+
This commit is contained in:
parent
d028a0e5ea
commit
f875adc473
@ -67,13 +67,13 @@ void Parse(std::string Data,SOCKET CSocket){
|
|||||||
case 'U':
|
case 'U':
|
||||||
if(SubCode == 'l')Data = UlStatus;
|
if(SubCode == 'l')Data = UlStatus;
|
||||||
if(SubCode == 'p'){
|
if(SubCode == 'p'){
|
||||||
if(ping == -1 && Terminate){
|
if(ping > 800){
|
||||||
Data = "Up-2";
|
Data = "Up-2";
|
||||||
}else Data = "Up" + std::to_string(ping);
|
}else Data = "Up" + std::to_string(ping);
|
||||||
}
|
}
|
||||||
if(!SubCode){
|
if(!SubCode){
|
||||||
std::string Ping;
|
std::string Ping;
|
||||||
if(ping == -1 && Terminate)Ping = "-2";
|
if(ping > 800)Ping = "-2";
|
||||||
else Ping = std::to_string(ping);
|
else Ping = std::to_string(ping);
|
||||||
Data = std::string(UlStatus) + "\n" + "Up" + Ping;
|
Data = std::string(UlStatus) + "\n" + "Up" + Ping;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ void GameSend(std::string Data){
|
|||||||
static std::mutex Lock;
|
static std::mutex Lock;
|
||||||
std::scoped_lock Guard(Lock);
|
std::scoped_lock Guard(Lock);
|
||||||
if(TCPTerminate || !GConnected || CSocket == -1)return;
|
if(TCPTerminate || !GConnected || CSocket == -1)return;
|
||||||
static thread_local int32_t Size,Temp,Sent;
|
int32_t Size,Temp,Sent;
|
||||||
Data += '\n';
|
Data += '\n';
|
||||||
Size = int32_t(Data.size());
|
Size = int32_t(Data.size());
|
||||||
Sent = 0;
|
Sent = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user