Browse Source

Improve cleanup handling.

master
t123yh 7 years ago
parent
commit
80f46159d9
  1. 3
      src/daemon-frontend-syzoj/socketio.ts

3
src/daemon-frontend-syzoj/socketio.ts

@ -201,5 +201,6 @@ export function updateResult(taskId: number, data: OverallResult) {
} }
export function cleanupProgress(taskId: number) { export function cleanupProgress(taskId: number) {
delete currentJudgeList[taskId]; // Prevent race condition
setTimeout(() => delete currentJudgeList[taskId], 10000);
} }
Loading…
Cancel
Save