Skip to content

Commit

Permalink
In case other is already closed when running alsoTo, don't throw …
Browse files Browse the repository at this point in the history
…another exception
  • Loading branch information
adamw committed Dec 23, 2024
1 parent 331a07c commit 34e3af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/ox/flow/FlowOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ class FlowOps[+T]:
other.send(t)
)
other.done()
}.tapException(other.error)
}.tapException(other.errorOrClosed(_).discard)
end alsoTo

private case object NotSent
Expand Down

0 comments on commit 34e3af9

Please sign in to comment.