diff --git a/src/Console.cpp b/src/Console.cpp index 13419d5..c2a2cd3 100644 --- a/src/Console.cpp +++ b/src/Console.cpp @@ -100,7 +100,7 @@ char _getch(void) { void SetupConsole() { error(__func__); -#if defined(WIN32) && !defined(DEBUG) +#if defined(WIN32) //&& !defined(DEBUG) DWORD outMode = 0; HANDLE stdoutHandle = GetStdHandle(STD_OUTPUT_HANDLE); if (stdoutHandle == INVALID_HANDLE_VALUE) { diff --git a/src/Network/Auth.cpp b/src/Network/Auth.cpp index 0ff1250..3ffbfb5 100644 --- a/src/Network/Auth.cpp +++ b/src/Network/Auth.cpp @@ -179,9 +179,9 @@ void Identification(SOCKET TCPSock,Hold*S,RSA*Skey){ for(auto& c : CI->Clients){ if(c != nullptr){ if(c->GetDID() == DID){ - // error("died on " + std::string(__func__) + ":" + std::to_string(__LINE__)); - //closesocket(c->GetTCPSock()); - //c->SetStatus(-2); ////TODO: UNCOMMENT!! + error("died on " + std::string(__func__) + ":" + std::to_string(__LINE__)); + closesocket(c->GetTCPSock()); + c->SetStatus(-2); break; } }