Fix runners not disappearing

This commit is contained in:
Joscha 2023-08-10 23:35:20 +02:00
parent 2079d0b12d
commit b16b3a668e
5 changed files with 10 additions and 8 deletions

View file

@ -29,7 +29,8 @@ pub async fn get(
State(config): State<&'static Config>,
State(runners): State<Arc<Mutex<Runners>>>,
) -> somehow::Result<Response> {
let Some(info) = runners.lock().unwrap().get(&name) else {
let info = runners.lock().unwrap().clean().get(&name);
let Some(info) = info else {
return Ok(StatusCode::NOT_FOUND.into_response());
};