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 ea15816790f16a60085ad743a00253241b0d0926 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Feb 15 09:29:41 2018 +0100 CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS SQS --- .../main/java/org/apache/camel/component/aws/sqs/SqsEndpoint.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs/SqsEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs/SqsEndpoint.java index 7a7281e..fda087e 100644 --- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs/SqsEndpoint.java +++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs/SqsEndpoint.java @@ -220,8 +220,11 @@ public class SqsEndpoint extends ScheduledPollEndpoint implements HeaderFilterSt } @Override - protected void doStop() throws Exception { - client = null; + public void doStop() throws Exception { + if (client != null) { + client.shutdown(); + } + super.doStop(); } public Exchange createExchange(com.amazonaws.services.sqs.model.Message msg) { -- To stop receiving notification emails like this one, please contact acosent...@apache.org.