Blocking collect on collect

This commit is contained in:
Brage Skjønborg 2026-01-30 14:27:09 +01:00
parent c5e379a65b
commit 8f06f8682d

View File

@ -17,7 +17,7 @@ class CollectEventsListener: EventListener() {
history: List<Event>
): Event? {
// Prevent Rouge trigger when replayed
if (history.any { it is CollectedEvent }) return null
if (event is CollectedEvent || history.any { it is CollectedEvent }) return null
val collectProjection = CollectProjection(history)
log.info { collectProjection.prettyPrint() }