Skip to content

Commit

Permalink
fix: only handle own id for inbound channel
Browse files Browse the repository at this point in the history
Signed-off-by: Martichou <[email protected]>
  • Loading branch information
Martichou committed Feb 22, 2024
1 parent 72ef7bc commit ed7453b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core_lib/src/hdl/inbound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ impl InboundRequest {
return Ok(());
}

if channel_msg.id != self.state.id {
return Ok(());
}

debug!("inbound: got: {:?}", channel_msg);
match channel_msg.action {
Some(ChannelAction::AcceptTransfer) => {
Expand Down

0 comments on commit ed7453b

Please sign in to comment.