From 86204f1e31f59d1c5b79d6f623689d719ec064eb Mon Sep 17 00:00:00 2001 From: Zztrans <2438362589@qq.com> Date: Mon, 15 Apr 2024 17:18:14 +0800 Subject: [PATCH] fix: when CE occur, set_idle --- judger/src/worker/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/judger/src/worker/mod.rs b/judger/src/worker/mod.rs index 832cb2b..70358a8 100644 --- a/judger/src/worker/mod.rs +++ b/judger/src/worker/mod.rs @@ -131,6 +131,7 @@ impl JudgeWorker { src_path: runtime_path.clone().join(&src_file_name), }); if let Err(e) = new_builder_result { + state::set_idle(); if let JudgeCoreError::CompileError(_) = e { return Ok(vec![ JudgeResultInfo {