Skip to content

Commit

Permalink
Enhance thread handling of InterruptedException
Browse files Browse the repository at this point in the history
  • Loading branch information
scwlkq committed Jan 23, 2024
1 parent 1d30733 commit cd7bb27
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ private void fileWatchRegister() {
key = service.take();
} catch (InterruptedException e) {
log.error("Interrupted", e);
Thread.currentThread().interrupt();
}

assert key != null;
Expand Down

0 comments on commit cd7bb27

Please sign in to comment.