Use session.id instead of making one

This commit is contained in:
memetrollsXD 2022-08-03 04:17:08 +02:00
parent 7a1d72ed63
commit a8cba90d7b
No known key found for this signature in database
GPG Key ID: 105C2F3417AC32CD

View File

@ -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);
}