Roll Back

This commit is contained in:
Anonymous275
2020-11-14 23:50:15 +02:00
parent 179b46d17b
commit c517a48fa6
9 changed files with 42 additions and 52 deletions

View File

@@ -90,7 +90,12 @@ void ServerSend(std::string Data, bool Rel){
}
}
void ClosePublic(){
void NetReset(){
TCPTerminate = false;
GConnected = false;
Terminate = false;
UlStatus = Sec("Ulstart");
MStatus = " ";
if(UDPSock != (SOCKET)(-1)){
debug(Sec("Terminating UDP Socket : ") + std::to_string(TCPSock));
KillSocket(UDPSock);
@@ -101,15 +106,6 @@ void ClosePublic(){
KillSocket(TCPSock);
}
TCPSock = -1;
}
void NetReset(){
TCPTerminate = false;
GConnected = false;
Terminate = false;
UlStatus = Sec("Ulstart");
MStatus = " ";
ClosePublic();
if(GSocket != (SOCKET)(-1)){
debug(Sec("Terminating GTCP Socket : ") + std::to_string(GSocket));
KillSocket(GSocket);