Timeout
parent
6e7845b052
commit
60971038d4
|
@ -46,6 +46,7 @@ export default class Util {
|
|||
cmd.stdout.off('data', writeFunction);
|
||||
cmd.stderr.off('data', writeFunction);
|
||||
cmd.off('error', writeFunction);
|
||||
setTimeout(() => {}, 1000);
|
||||
if (code !== 0) rej(new Error(output));
|
||||
res(output);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue