summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/rv/ltl_monitor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rv/ltl_monitor.h b/include/rv/ltl_monitor.h
index 9a583125b566..67031a774e3d 100644
--- a/include/rv/ltl_monitor.h
+++ b/include/rv/ltl_monitor.h
@@ -167,8 +167,10 @@ static void ltl_atom_update(struct task_struct *task, enum ltl_atom atom, bool v
ltl_atom_set(mon, atom, value);
ltl_atoms_fetch(task, mon);
- if (!rv_ltl_valid_state(mon))
+ if (!rv_ltl_valid_state(mon)) {
ltl_attempt_start(task, mon);
+ return;
+ }
ltl_validate(task, mon);
}