Skip to content

Commit

Permalink
close WatchService on interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarrios committed Sep 10, 2024
1 parent 371d854 commit bb78f14
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ public void run() {
checkAndConfigure();
} catch (InterruptedException ignored) {
return;
} finally {
try {
watchService.close();
} catch (IOException e) {
LOGGER.error("Error while closing watch service", e);
}
}
}
}
Expand Down

0 comments on commit bb78f14

Please sign in to comment.