From 60971038d4dcaaf1a6c61a3b80cd9ea51e1c5192 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 12 May 2020 17:26:39 +0100 Subject: [PATCH] Timeout --- src/class/Util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/class/Util.ts b/src/class/Util.ts index d8cbebd..f40b212 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -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); });