make watcher thread daemon

This commit is contained in:
Zlatin Balevsky
2019-06-17 19:58:57 +01:00
parent e78016ead4
commit aef7533bd5

View File

@@ -23,6 +23,7 @@ class DirectoryWatcher {
DirectoryWatcher(EventBus eventBus) {
this.eventBus = eventBus
this.watcherThread = new Thread({watch() } as Runnable, "directory-watcher")
watcherThread.setDaemon(true)
}
void start() {