CloseSocketProper instead of closesocket

This commit is contained in:
Lion Kortlepel
2020-11-12 23:20:37 +01:00
parent fedca58e8e
commit fa9bc16038
6 changed files with 27 additions and 22 deletions

View File

@@ -323,7 +323,7 @@ void LOOP() {
error(Sec("fatal: ") + std::string(e.what()));
}
}
/*closesocket(UDPSock);
/*CloseSocketProper(UDPSock);
WSACleanup();
return;*/
#else // unix
@@ -369,7 +369,7 @@ void LOOP() {
error(Sec("fatal: ") + std::string(e.what()));
}
}
/*closesocket(UDPSock); // TODO: Why not this? We did this in TCPServerMain?
/*CloseSocketProper(UDPSock); // TODO: Why not this? We did this in TCPServerMain?
return;
*/
#endif // WIN32