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', () => {
|
app.on('before-quit', () => {
|
||||||
|
if(rl)
|
||||||
|
rl.close()
|
||||||
|
|
||||||
app.isQuiting = true
|
app.isQuiting = true
|
||||||
if (sphinx)
|
if (sphinx)
|
||||||
stop()
|
stop()
|
||||||
|
@ -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()))
|
||||||
|
Loading…
Reference in New Issue
Block a user