Add sanity check that every match has active occurrence in its head (MPSCR-59)
This commit is contained in:
parent
14e4385382
commit
3f2b7df7b4
|
|
@ -249,10 +249,10 @@ internal class ConstraintsProcessing(private var dispatchingFront: Dispatcher.Di
|
|||
|
||||
// TODO: paranoid check. should be isAlive() instead
|
||||
// FIXME: move this check elsewhere
|
||||
if (status.operational && active.stored && match.allStored())
|
||||
if (status.operational && active.stored && match.allStored()) {
|
||||
assert(match.allHeads().contains(active))
|
||||
processMatch(controller, match, parent, status)
|
||||
else
|
||||
status
|
||||
} else status
|
||||
}
|
||||
|
||||
// TODO: should be isAlive()
|
||||
|
|
|
|||
Loading…
Reference in New Issue