From e41b3df09589fa3ff253e45dbd24cb67153600fb Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Fri, 6 Nov 2020 01:07:55 +0100 Subject: [PATCH] fix glaring f*cking error --- src/Network/Auth.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Network/Auth.cpp b/src/Network/Auth.cpp index dca66d1..92d9650 100644 --- a/src/Network/Auth.cpp +++ b/src/Network/Auth.cpp @@ -179,12 +179,12 @@ void Identification(SOCKET TCPSock,Hold*S,RSA*Skey){ } } if(Role == Sec("MDEV") || CI->Size() < Max()){ + debug("Identification success"); CreateClient(TCPSock,Name,DID,Role); } else { error("died on " + std::string(__func__) + ":" + std::to_string(__LINE__)); closesocket(TCPSock); } - debug("Identification success"); } void Identify(SOCKET TCPSock){ auto* S = new Hold; @@ -199,13 +199,10 @@ void Identify(SOCKET TCPSock){ Identification(TCPSock,S,Skey); #ifdef WIN32 }__except(1){ -#endif // WIN32 - if(TCPSock != -1){ error("died on " + std::string(__func__) + ":" + std::to_string(__LINE__)); closesocket(TCPSock); } -#ifdef WIN32 } #endif // WIN32