From 00c8163e1c3368a22a5aad23054106fadbcdf96b Mon Sep 17 00:00:00 2001 From: Zztrans <53961131+Zztrans@users.noreply.github.com> Date: Thu, 7 Mar 2024 07:50:39 +0000 Subject: [PATCH] fix invalid package_path make judger always busy --- judger/src/server/client/mod.rs | 1 + 1 file changed, 1 insertion(+) 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()