mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-15 04:06:14 +00:00
fix glaring f*cking error
This commit is contained in:
@@ -179,12 +179,12 @@ void Identification(SOCKET TCPSock,Hold*S,RSA*Skey){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(Role == Sec("MDEV") || CI->Size() < Max()){
|
if(Role == Sec("MDEV") || CI->Size() < Max()){
|
||||||
|
debug("Identification success");
|
||||||
CreateClient(TCPSock,Name,DID,Role);
|
CreateClient(TCPSock,Name,DID,Role);
|
||||||
} else {
|
} else {
|
||||||
error("died on " + std::string(__func__) + ":" + std::to_string(__LINE__));
|
error("died on " + std::string(__func__) + ":" + std::to_string(__LINE__));
|
||||||
closesocket(TCPSock);
|
closesocket(TCPSock);
|
||||||
}
|
}
|
||||||
debug("Identification success");
|
|
||||||
}
|
}
|
||||||
void Identify(SOCKET TCPSock){
|
void Identify(SOCKET TCPSock){
|
||||||
auto* S = new Hold;
|
auto* S = new Hold;
|
||||||
@@ -199,13 +199,10 @@ void Identify(SOCKET TCPSock){
|
|||||||
Identification(TCPSock,S,Skey);
|
Identification(TCPSock,S,Skey);
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
}__except(1){
|
}__except(1){
|
||||||
#endif // WIN32
|
|
||||||
|
|
||||||
if(TCPSock != -1){
|
if(TCPSock != -1){
|
||||||
error("died on " + std::string(__func__) + ":" + std::to_string(__LINE__));
|
error("died on " + std::string(__func__) + ":" + std::to_string(__LINE__));
|
||||||
closesocket(TCPSock);
|
closesocket(TCPSock);
|
||||||
}
|
}
|
||||||
#ifdef WIN32
|
|
||||||
}
|
}
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user