mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
cleanup wip; change cbor lib
This commit is contained in:
committed by
Aiden McClelland
parent
269ee0cf01
commit
1f48fcfb97
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user