cssfx icon indicating copy to clipboard operation
cssfx copied to clipboard

PathsWatcher does not close WatchService leading to Thread buildup

Open Clashsoft opened this issue 9 months ago • 0 comments

Pretty simple issue actually. Here is a visualVM screenshot:

image

PathsWatcher.stop should call watchService.close() but doesn't.

    private WatchService watchService;

    public void stop() {
        watcherThread.interrupt();
       // add:
       watchService.stop(); // might need try-catch
    }

Clashsoft avatar May 20 '24 11:05 Clashsoft