Skip to content

Commit

Permalink
Ignore messages that ING code tries to send to itself
Browse files Browse the repository at this point in the history
  • Loading branch information
survived committed Aug 3, 2022
1 parent 2286bb3 commit 3962d22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions round-based-ing/src/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ where
continue;
}
};
if msg.recipient == MessageDestination::OneParty(party_index) {
warn!(
parent: &span,
"Protocol wants to send message to itself. Ignore that message."
);
continue;
}
trace!(
parent: &span,
recipient = ?msg.recipient,
Expand Down

0 comments on commit 3962d22

Please sign in to comment.