cssfx
cssfx copied to clipboard
PathsWatcher does not close WatchService leading to Thread buildup
Pretty simple issue actually. Here is a visualVM screenshot:
PathsWatcher.stop
should call watchService.close()
but doesn't.
private WatchService watchService;
public void stop() {
watcherThread.interrupt();
// add:
watchService.stop(); // might need try-catch
}