clean up veilid state processing

This commit is contained in:
John Smith
2022-01-18 18:28:22 -05:00
parent 1b6864bf22
commit 205a6a8fd1
5 changed files with 54 additions and 41 deletions

View File

@@ -333,11 +333,6 @@ impl AttachmentManager {
}
}
pub async fn send_state_update(&self) {
let attachment_machine = self.inner.lock().attachment_machine.clone();
attachment_machine.send_state_update().await;
}
pub async fn request_attach(&self) {
if !self.is_detached() {
trace!("attach request ignored");
@@ -395,10 +390,8 @@ impl AttachmentManager {
} else {
return false;
}
} else {
if eventual.await == state {
break;
}
} else if eventual.await == state {
break;
}
}
true