diff --git a/src/daemon-frontend-syzoj/socketio.ts b/src/daemon-frontend-syzoj/socketio.ts index 0a976c9..1ec53dc 100644 --- a/src/daemon-frontend-syzoj/socketio.ts +++ b/src/daemon-frontend-syzoj/socketio.ts @@ -201,5 +201,6 @@ export function updateResult(taskId: number, data: OverallResult) { } export function cleanupProgress(taskId: number) { - delete currentJudgeList[taskId]; + // Prevent race condition + setTimeout(() => delete currentJudgeList[taskId], 10000); } \ No newline at end of file