From a8c7fcfac628084225cef6670bfcc4f5429fa336 Mon Sep 17 00:00:00 2001 From: Antares Date: Thu, 5 Oct 2023 02:31:29 +0800 Subject: [PATCH] Fix system error caused by async function without await (#23) --- src/runner/judge.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner/judge.ts b/src/runner/judge.ts index bfe0993..e747a42 100644 --- a/src/runner/judge.ts +++ b/src/runner/judge.ts @@ -253,8 +253,8 @@ export async function judgeStandard(task: StandardRunTask) } } } finally { - tryEmptyDir(workingDir); - tryEmptyDir(spjWorkingDir); + await tryEmptyDir(workingDir); + await tryEmptyDir(spjWorkingDir); } }