Skip to content

Commit

Permalink
CAMEL-20297 camel-irc: do not swallow interrupted exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
orpiske committed Jan 9, 2024
1 parent 7689bc3 commit f70676d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ protected void doStart() throws Exception {
try {
Thread.sleep(configuration.getCommandTimeout());
} catch (InterruptedException ex) {
// ignore
LOG.info("Interrupted while sleeping before sending commands");
Thread.currentThread().interrupt();
}
if (ObjectHelper.isNotEmpty(configuration.getNickPassword())) {
LOG.debug("Identifying and enforcing nick with NickServ.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ protected void reconnect() {
try {
Thread.sleep(getEndpoint().getConfiguration().getCommandTimeout());
} catch (InterruptedException ex) {
// ignore
LOG.info("Interrupted while sleeping before sending commands");
Thread.currentThread().interrupt();
}
getEndpoint().joinChannels();
}
Expand Down

0 comments on commit f70676d

Please sign in to comment.