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 e1ba669db5fd37e42a06325ac0664b58f60806fd
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon Jan 15 11:05:05 2024 +0100

    CAMEL-20297 camel-jt400: do not swallow interrupted exceptions
---
 .../main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
 
b/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
index 5d3e4c2e49a..bd9a02f888a 100644
--- 
a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
+++ 
b/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
@@ -89,6 +89,9 @@ public class Jt400PgmProducer extends DefaultProducer {
             } else {
                 throw new Jt400PgmCallException(getOutputMessages(pgmCall));
             }
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new Jt400PgmCallException(e);
         } catch (Exception e) {
             throw new Jt400PgmCallException(e);
         } finally {

Reply via email to