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 7c436016eb9fbd94fe6fa31e6d8c9671a43530d3 Author: Andrea Cosentino <[email protected]> AuthorDate: Tue Mar 20 08:02:38 2018 +0100 CAMEL-12379 - Shutdown only AWS clients owned by the context - AWS DDB Stream --- .../org/apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java index 662c8ec..11e12fa 100644 --- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java +++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java @@ -82,8 +82,10 @@ public class DdbStreamEndpoint extends ScheduledPollEndpoint { @Override public void doStop() throws Exception { - if (ddbStreamClient != null) { - ddbStreamClient.shutdown(); + if (ObjectHelper.isEmpty(configuration.getAmazonDynamoDbStreamsClient())) { + if (ddbStreamClient != null) { + ddbStreamClient.shutdown(); + } } super.doStop(); } -- To stop receiving notification emails like this one, please contact [email protected].
