Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Fix ConcurrentModification
Browse files Browse the repository at this point in the history
  • Loading branch information
dluvian committed Feb 28, 2024
1 parent ec5693a commit b7823ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class EventProcessor(
}

private fun matchesFilter(subId: SubId, event: Event): Boolean {
val cache = filterCache.getOrDefault(subId, emptyList())
val cache = filterCache.getOrDefault(subId, emptyList()).toList()
if (cache.isEmpty()) return false
return cache.any { it.matches(event) }
}
Expand Down

0 comments on commit b7823ac

Please sign in to comment.