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

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 9463a99e4ec60359afcc97948468c96dac8d1ff4
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Mar 20 08:01:52 2018 +0100

    CAMEL-12379 - Shutdown only AWS clients owned by the context - AWS DDB
---
 .../main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java
 
b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java
index fa8f45e..0daea42 100644
--- 
a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java
+++ 
b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddb/DdbEndpoint.java
@@ -114,8 +114,10 @@ public class DdbEndpoint extends ScheduledPollEndpoint {
     
     @Override
     public void doStop() throws Exception {
-        if (ddbClient != null) {
-            ddbClient.shutdown();
+        if (ObjectHelper.isEmpty(configuration.getAmazonDDBClient())) {
+            if (ddbClient != null) {
+                ddbClient.shutdown();
+            }
         }
         super.doStop();
     }

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to