We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 940f849 commit 6af6c39Copy full SHA for 6af6c39
simulator/src/main/java/byzzbench/simulator/faults/behaviors/MutateMessageBehavior.java
@@ -66,6 +66,10 @@ public void accept(FaultContext context) {
66
67
// apply the random mutator
68
MessageMutationFault mutator = mutators.get(rand.nextInt(mutators.size()));
69
- context.getScenario().getTransport().applyMutation(e.getEventId(), mutator);
+
70
+ // apply the mutation (if the message is still queued)
71
+ if (e.getStatus() == Event.Status.QUEUED) {
72
+ context.getScenario().getTransport().applyMutation(e.getEventId(), mutator);
73
+ }
74
}
75
0 commit comments