diff --git a/judger/src/server/client/mod.rs b/judger/src/server/client/mod.rs index fe5804b..2600431 100644 --- a/judger/src/server/client/mod.rs +++ b/judger/src/server/client/mod.rs @@ -148,6 +148,7 @@ fn run_judge(task: JudgeTask) -> Result, ClientError> { src_path: runtime_path.clone().join(&src_file_name), }); if new_builder_result.is_err() { + state::set_idle(); return Err(ClientError::InternalError(anyhow::anyhow!( "Failed to new builder result: {:?}", new_builder_result.err()