Skip to content

Commit

Permalink
Prevent error from being thrown after response is committed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hank-Choi committed Feb 13, 2025
1 parent 6e1e478 commit 15f4edf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class TruffleWebExceptionHandler(private val hub: IHub) : WebExceptionHandler {
)
}

return Mono.error(ex)
return if (exchange.response.isCommitted) {
Mono.empty()
} else {
Mono.error(ex)
}
}
}

0 comments on commit 15f4edf

Please sign in to comment.