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

@@ -348,7 +348,7 @@ int lua_dropPlayer(lua_State* L) {
Respond(c, "C:Server:You have been Kicked from the server! " + Reason, true);
c->SetStatus(-2);
info(Sec("Closing socket due to kick"));
closesocket(c->GetTCPSock());
CloseSocketProper(c->GetTCPSock());
} else
SendError(L, Sec("DropPlayer not enough arguments"));