From 72059a7d93f7d18456f8bdf4efcc9ad6c0a084d8 Mon Sep 17 00:00:00 2001 From: Ayhan Date: Wed, 27 Jul 2016 06:11:54 +0300 Subject: [PATCH] Fix Close process (#450) * fix close process * fix control * fix lint --- app/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/index.js b/app/index.js index 6bb3d179..568cb844 100644 --- a/app/index.js +++ b/app/index.js @@ -225,6 +225,9 @@ app.on('ready', () => { deleteSessions(); cfgUnsubscribe(); pluginsUnsubscribe(); + if (windowSet.size === 0) { + win.close(); + } }); }