You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/03/16 13:31:19 UTC
[camel-spring-boot] 01/02: CAMEL-14642: camel-spring-boot - Using
max duration and shutdown before should terminate scheduled thread quicker
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit c6c4c24c49d49b7522e6a982423e81691a02bb3b
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Mar 16 14:04:45 2020 +0100
CAMEL-14642: camel-spring-boot - Using max duration and shutdown before should terminate scheduled thread quicker
---
.../apache/camel/spring/boot/CamelSpringBootApplicationListener.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationListener.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationListener.java
index 8f6c5d0..325731f 100644
--- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationListener.java
+++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelSpringBootApplicationListener.java
@@ -247,6 +247,8 @@ public class CamelSpringBootApplicationListener implements ApplicationListener<C
// we are stopping then cancel the task so we can shutdown quicker
if (!running.get()) {
future.cancel(true);
+ // trigger shutdown
+ latch.countDown();
}
}
});