You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/03/20 07:15:57 UTC
[camel] 11/14: CAMEL-12379 - Shutdown only AWS clients owned by the
context - AWS SES
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-2.21.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit a3d28f2961cf59d26c84c51a4cbf3fa4aad1e4b8
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 20 08:09:29 2018 +0100
CAMEL-12379 - Shutdown only AWS clients owned by the context - AWS SES
---
.../main/java/org/apache/camel/component/aws/ses/SesEndpoint.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ses/SesEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ses/SesEndpoint.java
index d071d7e..b12cba7 100644
--- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ses/SesEndpoint.java
+++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ses/SesEndpoint.java
@@ -66,8 +66,10 @@ public class SesEndpoint extends DefaultEndpoint {
@Override
public void doStop() throws Exception {
- if (sesClient != null) {
- sesClient.shutdown();
+ if (ObjectHelper.isEmpty(configuration.getAmazonSESClient())) {
+ if (sesClient != null) {
+ sesClient.shutdown();
+ }
}
super.doStop();
}
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.