Skip to content

Commit

Permalink
Fire signal even if we are unbound
Browse files Browse the repository at this point in the history
  • Loading branch information
Iliya-usov committed Oct 25, 2024
1 parent c85561e commit 53544d2
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ class RdSignal<T>(val valueSerializer: ISerializer<T> = Polymorphic<T>()) : RdRe
val proto = protocol
val ctx = serializationContext

if (proto == null || ctx == null)
return
if (proto != null && ctx != null) {
val wire = proto.wire

val wire = proto.wire

wire.send(rdid) { buffer ->
logSend.trace { "signal `$location` ($rdid):: value = ${value.printToString()}" }
valueSerializer.write(ctx, buffer, value)
wire.send(rdid) { buffer ->
logSend.trace { "signal `$location` ($rdid):: value = ${value.printToString()}" }
valueSerializer.write(ctx, buffer, value)
}
}

signal.fire(value)
}

Expand Down

0 comments on commit 53544d2

Please sign in to comment.