diff --git a/app/index.js b/app/index.js index e58e3fcd..731aaa02 100644 --- a/app/index.js +++ b/app/index.js @@ -135,7 +135,13 @@ app.on('ready', () => { }); rpc.on('exit', ({ uid }) => { - sessions.get(uid).exit(); + const session = sessions.get(uid); + + if (session) { + session.exit(); + } else { + console.log('session not found by', uid); + } }); rpc.on('unmaximize', () => {