mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38:41 -09:00
index: prevent double sesson exit (#380) [@timneutkens]
This commit is contained in:
parent
8c53d25b71
commit
9a28ff302f
1 changed files with 7 additions and 1 deletions
|
|
@ -135,7 +135,13 @@ app.on('ready', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
rpc.on('exit', ({ uid }) => {
|
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', () => {
|
rpc.on('unmaximize', () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue