This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-4.4.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.4.x by this push:
     new 05c354f989c camel-jbang - Fixed deadline when doing camel version list
05c354f989c is described below

commit 05c354f989c641a77cd32ec5494e0b84d61aaca4
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon Jun 17 15:51:43 2024 +0200

    camel-jbang - Fixed deadline when doing camel version list
---
 .../apache/camel/component/platform/http/main/MainHttpServer.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
 
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
index 87baeee3ea6..aec9c6958cc 100644
--- 
a/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
+++ 
b/components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/MainHttpServer.java
@@ -258,6 +258,7 @@ public class MainHttpServer extends ServiceSupport 
implements CamelContextAware,
         ObjectHelper.notNull(camelContext, "CamelContext");
 
         server = new VertxPlatformHttpServer(configuration);
+        // adding server to camel-context which will manage shutdown the 
server, so we should not do this here
         camelContext.addService(server);
         ServiceHelper.startService(server);
         router = VertxPlatformHttpRouter.lookup(camelContext);
@@ -495,11 +496,6 @@ public class MainHttpServer extends ServiceSupport 
implements CamelContextAware,
         return 200;
     }
 
-    @Override
-    protected void doStop() throws Exception {
-        ServiceHelper.stopAndShutdownService(server);
-    }
-
     private static void healthCheckStatus(StringBuilder sb, boolean up) {
         if (up) {
             sb.append("    \"status\": \"UP\"\n");

Reply via email to