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 c217d1c37a50ed63ffe43673d84915a04f10083c Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Feb 15 09:35:47 2018 +0100 CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS Lambda --- .../org/apache/camel/component/aws/lambda/LambdaEndpoint.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/lambda/LambdaEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/lambda/LambdaEndpoint.java index 35a2d91..5d57793 100644 --- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/lambda/LambdaEndpoint.java +++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/lambda/LambdaEndpoint.java @@ -66,6 +66,14 @@ public class LambdaEndpoint extends DefaultEndpoint { super.doStart(); awsLambdaClient = configuration.getAwsLambdaClient() != null ? configuration.getAwsLambdaClient() : createLambdaClient(); } + + @Override + public void doStop() throws Exception { + if (awsLambdaClient != null) { + awsLambdaClient.shutdown(); + } + super.doStop(); + } public LambdaConfiguration getConfiguration() { return configuration; -- To stop receiving notification emails like this one, please contact acosent...@apache.org.