You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/01/11 16:55:35 UTC

(camel) 06/07: CAMEL-20297 camel-iec60870: do not swallow interrupted exceptions

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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 94933f335fff454a1fc1cea304dd3fc2b5d47ea8
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jan 11 10:13:32 2024 +0100

    CAMEL-20297 camel-iec60870: do not swallow interrupted exceptions
---
 .../org/apache/camel/component/iec60870/client/ClientConnection.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-iec60870/src/main/java/org/apache/camel/component/iec60870/client/ClientConnection.java b/components/camel-iec60870/src/main/java/org/apache/camel/component/iec60870/client/ClientConnection.java
index 017edc7e2ac..d1673f98ecc 100644
--- a/components/camel-iec60870/src/main/java/org/apache/camel/component/iec60870/client/ClientConnection.java
+++ b/components/camel-iec60870/src/main/java/org/apache/camel/component/iec60870/client/ClientConnection.java
@@ -106,7 +106,7 @@ public class ClientConnection {
         try {
             latch.await(this.options.getConnectionTimeout(), TimeUnit.MILLISECONDS);
         } catch (InterruptedException e) {
-            // ignore
+            Thread.currentThread().interrupt();
         }
     }