Skip to content

Commit

Permalink
Catching InterruptedException now interrupts the caller thread again (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Oct 2, 2024
1 parent eee37b8 commit 67969f6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/org/jgroups/protocols/TransferQueueBundler.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ public synchronized void stop() {
if(tmp != null) {
tmp.interrupt();
if(tmp.isAlive()) {
try {tmp.join(500);} catch(InterruptedException e) {}
try {
tmp.join(500);
}
catch(InterruptedException e) {
Thread.currentThread().interrupt();
}
}
}
drain();
Expand Down Expand Up @@ -127,6 +132,9 @@ public void run() {
num_sends_because_no_msgs++;
}
}
catch(InterruptedException iex) {
Thread.currentThread().interrupt();
}
catch(Throwable t) {
log.trace("%s: failed sending message: %s", transport.addr(), t);
}
Expand Down

0 comments on commit 67969f6

Please sign in to comment.