Skip to content

Commit 9deba3a

Browse files
committed
Mark FileSystemTree thread as daemon
Otherwise, the JVM cannot shut down cleanly.
1 parent 42d37cb commit 9deba3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/scijava/ui/swing/script/FileSystemTree.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ private class DirectoryWatcher extends Thread {
506506
private final HashMap<Path, Node> map = new HashMap<>();
507507

508508
DirectoryWatcher() {
509+
setDaemon(true);
509510
try {
510511
this.watcher = FileSystems.getDefault().newWatchService();
511512
this.start();

0 commit comments

Comments
 (0)