diff --git a/ktor-ws-events-server/src/jvmMain/kotlin/dev/d1s/ktor/events/server/util/InternalComponents.kt b/ktor-ws-events-server/src/jvmMain/kotlin/dev/d1s/ktor/events/server/util/InternalComponents.kt index d048c21..ff401b0 100644 --- a/ktor-ws-events-server/src/jvmMain/kotlin/dev/d1s/ktor/events/server/util/InternalComponents.kt +++ b/ktor-ws-events-server/src/jvmMain/kotlin/dev/d1s/ktor/events/server/util/InternalComponents.kt @@ -31,7 +31,7 @@ internal var Attributes.eventPool: EventPool set(value) = this.put(Key.EventPool, value) internal var Attributes.filter: OutgoingEventFilter? - get() = this[Key.Filter] + get() = this.getOrNull(Key.Filter) set(value) { value?.let { this.put(Key.Filter, it)