Skip to content

Commit

Permalink
CAMEL-20297 camel-jms: do not swallow interrupted exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
orpiske committed Jan 10, 2024
1 parent b3bc0a1 commit 8111713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public Destination getReplyTo() {
log.trace("Waiting for replyTo to be set done");
}
} catch (InterruptedException e) {
// ignore
Thread.currentThread().interrupt();
}
return replyTo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ public Destination getReplyTo() {
try {
destResolver.destinationReady();
} catch (InterruptedException e) {
log.warn("Interrupted while waiting for JMSReplyTo destination refresh due to: {}. This exception is ignored.",
log.warn("Interrupted while waiting for JMSReplyTo destination refresh due to: {}.",
e.getMessage());
Thread.currentThread().interrupt();
}
return super.getReplyTo();
}
Expand Down

0 comments on commit 8111713

Please sign in to comment.