Skip to content

Commit

Permalink
Do not fail the whole Establish when failing on shm segment check
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowhatter committed Jul 17, 2024
1 parent d6569b2 commit d8d2c11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion io/zenoh-transport/src/unicast/establishment/ext/shm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,13 @@ impl<'a> AcceptFsm for &'a ShmFsm<'a> {
};

// Read Alice's SHM Segment
let alice_segment = AuthSegment::open(init_syn.alice_segment)?;
let alice_segment = match AuthSegment::open(init_syn.alice_segment) {
Ok(buff) => buff,
Err(e) => {
tracing::trace!("{} {}", S, e);
return Ok(None);
}
};

Ok(Some(alice_segment))
}
Expand Down

0 comments on commit d8d2c11

Please sign in to comment.