check proc and stdin support
parent
b4c886c16a
commit
36fbf5621c
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue