fix(linux): fix console control after exit

This commit is contained in:
Alexey Kasyanchuk 2018-08-02 18:32:49 +03:00
parent 2631662168
commit eb5d7d1594
2 changed files with 4 additions and 0 deletions

View File

@ -314,6 +314,9 @@ app.on("window-all-closed", () => {
}); });
app.on('before-quit', () => { app.on('before-quit', () => {
if(rl)
rl.close()
app.isQuiting = true app.isQuiting = true
if (sphinx) if (sphinx)
stop() stop()

View File

@ -63,6 +63,7 @@ rl.on("SIGINT", function () {
}); });
process.on("SIGINT", () => { process.on("SIGINT", () => {
rl.close()
if(spider) if(spider)
{ {
spider.stop(() => sphinx.stop(() => process.exit())) spider.stop(() => sphinx.stop(() => process.exit()))