fix(linux): fix closing on linux
This commit is contained in:
parent
02bc92fc11
commit
2631662168
@ -317,4 +317,20 @@ app.on('before-quit', () => {
|
||||
app.isQuiting = true
|
||||
if (sphinx)
|
||||
stop()
|
||||
})
|
||||
})
|
||||
|
||||
var rl = require("readline").createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
});
|
||||
|
||||
rl.on("SIGINT", function () {
|
||||
process.emit("SIGINT");
|
||||
});
|
||||
|
||||
process.on("SIGINT", () => {
|
||||
if (sphinx)
|
||||
stop()
|
||||
else
|
||||
app.quit()
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user