Fix Close process (#450)

* fix close process

* fix control

* fix lint
This commit is contained in:
Ayhan 2016-07-27 06:11:54 +03:00 committed by Guillermo Rauch
parent ce357c72be
commit 72059a7d93

View file

@ -225,6 +225,9 @@ app.on('ready', () => {
deleteSessions(); deleteSessions();
cfgUnsubscribe(); cfgUnsubscribe();
pluginsUnsubscribe(); pluginsUnsubscribe();
if (windowSet.size === 0) {
win.close();
}
}); });
} }