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:58 UTC
[camel] 12/14: CAMEL-12379 - Shutdown only AWS clients owned by the
context - AWS SNS
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 2125c1c00a2d2a9a06f78ce6da632a9da5b1cf8e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 20 08:10:10 2018 +0100
CAMEL-12379 - Shutdown only AWS clients owned by the context - AWS SNS
---
.../main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java
index 0576914..ad89d46 100644
--- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java
+++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/sns/SnsEndpoint.java
@@ -155,8 +155,10 @@ public class SnsEndpoint extends DefaultEndpoint implements HeaderFilterStrategy
@Override
public void doStop() throws Exception {
- if (snsClient != null) {
- snsClient.shutdown();
+ if (ObjectHelper.isEmpty(configuration.getAmazonSNSClient())) {
+ if (snsClient != null) {
+ snsClient.shutdown();
+ }
}
super.doStop();
}
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.