From a8cba90d7b7c3797eefe723e05dcee6334d63d7f Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Wed, 3 Aug 2022 04:17:08 +0200 Subject: [PATCH] Use session.id instead of making one --- src/server/packets/PlayerLogoutCsReq.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/packets/PlayerLogoutCsReq.ts b/src/server/packets/PlayerLogoutCsReq.ts index 8200668..cc01d61 100644 --- a/src/server/packets/PlayerLogoutCsReq.ts +++ b/src/server/packets/PlayerLogoutCsReq.ts @@ -4,5 +4,5 @@ import SRServer from "../kcp/SRServer"; export default async function handle(session: Session, packet: Packet) { // Remove from session list - SRServer.getInstance().sessions.delete(`${session.ctx.address}:${session.ctx.port}`); + SRServer.getInstance().sessions.delete(session.id); } \ No newline at end of file