Use real session in createGame
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
9a15bde816
commit
70a65b1665
@ -8,7 +8,6 @@ const express = require("express"),
|
||||
accessSync = fs.accessSync,
|
||||
randomWords = require("random-words");
|
||||
|
||||
const session = require("express-session");
|
||||
const layout = require('./layout.js');
|
||||
|
||||
const MAX_SETTLEMENTS = 5;
|
||||
@ -456,6 +455,8 @@ const getSession = (game, reqSession) => {
|
||||
};
|
||||
}
|
||||
|
||||
const session = game.sessions[id];
|
||||
|
||||
/* Expire old unused sessions */
|
||||
for (let _id in game.sessions) {
|
||||
const _session = game.sessions[_id];
|
||||
|
Loading…
x
Reference in New Issue
Block a user