davsclaus commented on code in PR #26624:
URL: https://github.com/apache/camel/pull/26624#discussion_r4056757878
##########
components/camel-vertx/camel-vertx-http/src/main/java/org/apache/camel/component/vertx/http/VertxHttpComponent.java:
##########
@@ -254,6 +258,16 @@ protected void doStop() throws Exception {
}
public Vertx getVertx() {
+ if (vertx == null && (isNew() || isInit() || isStarting() ||
isStarted())) {
Review Comment:
Applied in a07316dde354, and one step further: the state is re-checked under
the monitor as suggested, and doStop closes and clears the Vert.x under the
same monitor, so the window between the inner check and the close is gone as
well (a stop that runs in between now waits and then closes what was created).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]