From e2c7fd9c81bcee6b52cff4d2b926871e30519472 Mon Sep 17 00:00:00 2001 From: Peter Donovan Date: Thu, 28 Sep 2023 15:02:56 -0700 Subject: [PATCH] Address the delay in reaching stop time consensus. --- test/C/src/federated/SmallDelayDecentralized.lf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/C/src/federated/SmallDelayDecentralized.lf b/test/C/src/federated/SmallDelayDecentralized.lf index 085b88a383..64726fd998 100644 --- a/test/C/src/federated/SmallDelayDecentralized.lf +++ b/test/C/src/federated/SmallDelayDecentralized.lf @@ -13,8 +13,10 @@ reactor Count { =} reaction(loop) -> out {= - lf_set(out, self->count++); - lf_schedule(loop, 0); + if (self->count < 20) { + lf_set(out, self->count++); + lf_schedule(loop, 0); + } =} } @@ -48,8 +50,6 @@ reactor Print { lf_schedule(loop, 0); } =} - - reaction(shutdown) {= =} } federated reactor {