check proc and stdin support

merge-requests/367/head
Serdar Sanri 2022-07-13 16:30:25 +00:00
parent b4c886c16a
commit 36fbf5621c
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ module.exports = (s,config,lang) => {
resolve(response)
}
try{
proc.stdin.write("q\r\n")
if(proc && proc.stdin) {
proc.stdin.write("q\r\n");
}
setTimeout(() => {
if(proc && proc.kill){
if(s.isWin){