You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/03/20 07:15:54 UTC
[camel] 08/14: CAMEL-12379 - Shutdown only AWS clients owned by the
context - AWS KMS
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-2.21.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 4b09a105a818c7b71f4817e20e18b53ce8017c25
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 20 08:06:29 2018 +0100
CAMEL-12379 - Shutdown only AWS clients owned by the context - AWS KMS
---
.../main/java/org/apache/camel/component/aws/kms/KMSEndpoint.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/kms/KMSEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/kms/KMSEndpoint.java
index 2d6a61f..4a5f15d 100644
--- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/kms/KMSEndpoint.java
+++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/kms/KMSEndpoint.java
@@ -70,8 +70,10 @@ public class KMSEndpoint extends ScheduledPollEndpoint {
@Override
public void doStop() throws Exception {
- if (kmsClient != null) {
- kmsClient.shutdown();
+ if (ObjectHelper.isEmpty(configuration.getKmsClient())) {
+ if (kmsClient != null) {
+ kmsClient.shutdown();
+ }
}
super.doStop();
}
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.