You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/04/15 07:36:34 UTC

(camel) branch camel-4.0.x updated: CAMEL-20388: camel-salesforce - Invoke client.disconnect() when receiving connection failure message (#13725)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-4.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.0.x by this push:
     new e1331f8d7fc CAMEL-20388: camel-salesforce - Invoke client.disconnect() when receiving connection failure message (#13725)
e1331f8d7fc is described below

commit e1331f8d7fc716dfb003955ebc2b3c3f1f392658
Author: Zheng Feng <zh...@gmail.com>
AuthorDate: Mon Apr 15 15:35:49 2024 +0800

    CAMEL-20388: camel-salesforce - Invoke client.disconnect() when receiving connection failure message (#13725)
---
 .../component/salesforce/internal/streaming/SubscriptionHelper.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java
index 57f3ff6298f..4440f7eaf1a 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java
@@ -163,6 +163,7 @@ public class SubscriptionHelper extends ServiceSupport {
                             LOG.warn("Connect failure: {}", message);
                             connectError = (String) message.get(ERROR_FIELD);
                             connectException = getFailure(message);
+                            client.disconnect();
 
                             if (connectError != null && connectError.equals(AUTHENTICATION_INVALID)) {
                                 LOG.debug("connectError: {}", connectError);