Unverified 提交 b8cf6748 authored 作者: satoren's avatar satoren

fix: panic message on cargo test

上级 8c084458
...@@ -138,9 +138,10 @@ impl WorkerManager { ...@@ -138,9 +138,10 @@ impl WorkerManager {
move || { move || {
let _ = exit_sender.send(()); let _ = exit_sender.send(());
let id = id.lock().take().unwrap(); if let Some(id) = id.lock().take() {
workers.lock().remove(&id); workers.lock().remove(&id);
} }
}
}, },
) )
.await?; .await?;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论