cleanup wip; change cbor lib

This commit is contained in:
Aiden McClelland
2021-08-24 16:26:13 -06:00
committed by Aiden McClelland
parent 269ee0cf01
commit 1f48fcfb97
9 changed files with 127 additions and 32 deletions

View File

@@ -68,9 +68,9 @@ impl ManagerMap {
) -> Result<(), Error> {
let mut lock = self.0.write().await;
let id = (manifest.id.clone(), manifest.version.clone());
if let Some(man) = lock.get(&id) {
if let Some(man) = lock.remove(&id) {
if !man.thread.is_empty().await {
return Ok(());
man.exit().await?;
}
}
lock.insert(