fix(linux): fix console control after exit
This commit is contained in:
parent
2631662168
commit
eb5d7d1594
@ -314,6 +314,9 @@ app.on("window-all-closed", () => {
|
||||
});
|
||||
|
||||
app.on('before-quit', () => {
|
||||
if(rl)
|
||||
rl.close()
|
||||
|
||||
app.isQuiting = true
|
||||
if (sphinx)
|
||||
stop()
|
||||
|
@ -63,6 +63,7 @@ rl.on("SIGINT", function () {
|
||||
});
|
||||
|
||||
process.on("SIGINT", () => {
|
||||
rl.close()
|
||||
if(spider)
|
||||
{
|
||||
spider.stop(() => sphinx.stop(() => process.exit()))
|
||||
|
Loading…
Reference in New Issue
Block a user