fix(managed): transact group session close

This commit is contained in:
Nils Andreas Svee committed 2026-08-04 13:08:38 +07:00
1 parent 357e1356ea
commit ef19c45c1f
2 files changed
+355 -19

No files matched your search

@@ -446,15 +446,6 @@ impl SessionMachine {
commit.event
}
pub(crate) fn close_with<F>(&mut self, send: F) -> Result<Vec<ClientEvent>, ClientError>
where
F: FnOnce(&[u8]) -> Result<(), ClientError>,
{
let prepared = self.prepare_close()?;
send(prepared.bytes)?;
Ok(vec![self.commit_local_close(prepared.commit)])
}
pub(crate) fn pending_is_empty(&self) -> bool {
match &self.state {
MachineState::Open(session) => session.pending.len() == 0,