fix not removing client when disconnecting them

This commit is contained in:
Lion Kortlepel
2022-11-25 14:40:21 +01:00
parent b1a89125fe
commit 7316dff519
3 changed files with 11 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ void TClient::Disconnect(std::string_view Reason) {
if (ec) {
beammp_debugf("Failed to close client socket: {}", ec.message());
}
mServer.RemoveClientById(GetID());
}
void TClient::SetCarPosition(int Ident, const std::string& Data) {