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 ce9e01b137155da0226c7d5682a9f1742807b285 Author: Andrea Cosentino <[email protected]> AuthorDate: Tue Mar 20 07:56:25 2018 +0100 CAMEL-12379 - Shutdown only AWS clients owned by the context - AWS CW --- .../src/main/java/org/apache/camel/component/aws/cw/CwEndpoint.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/cw/CwEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/cw/CwEndpoint.java index fa016ff..0a3400a 100644 --- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/cw/CwEndpoint.java +++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/cw/CwEndpoint.java @@ -77,8 +77,10 @@ public class CwEndpoint extends DefaultEndpoint { @Override public void doStop() throws Exception { - if (cloudWatchClient != null) { - cloudWatchClient.shutdown(); + if (ObjectHelper.isEmpty(configuration.getAmazonCwClient())) { + if (cloudWatchClient != null) { + cloudWatchClient.shutdown(); + } } super.doStop(); } -- To stop receiving notification emails like this one, please contact [email protected].
