mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-03 13:56:01 +00:00
CloseSocketProper instead of closesocket
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user