diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df1473a8..ac908181 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: ci +name: CI on: push: diff --git a/service/utils.ts b/service/utils.ts index 1dcfc24c..a9e2a2ce 100644 --- a/service/utils.ts +++ b/service/utils.ts @@ -21,8 +21,15 @@ export const runVlmcs = ({ content: stdout.trim(), status: err ? false : true, }) - vlmcs.kill() }, ) + + vlmcs.on('error', () => { + vlmcs.kill() + }) + + vlmcs.on('close', () => { + vlmcs.kill() + }) }) }