|
|
@ -154,8 +154,7 @@ public class FileSystemWatcher {
|
|
|
|
synchronized (this.monitor) {
|
|
|
|
synchronized (this.monitor) {
|
|
|
|
saveInitialSnapshots();
|
|
|
|
saveInitialSnapshots();
|
|
|
|
if (this.watchThread == null) {
|
|
|
|
if (this.watchThread == null) {
|
|
|
|
Map<File, FolderSnapshot> localFolders = new HashMap<>();
|
|
|
|
Map<File, FolderSnapshot> localFolders = new HashMap<>(this.folders);
|
|
|
|
localFolders.putAll(this.folders);
|
|
|
|
|
|
|
|
this.watchThread = new Thread(new Watcher(this.remainingScans, new ArrayList<>(this.listeners),
|
|
|
|
this.watchThread = new Thread(new Watcher(this.remainingScans, new ArrayList<>(this.listeners),
|
|
|
|
this.triggerFilter, this.pollInterval, this.quietPeriod, localFolders));
|
|
|
|
this.triggerFilter, this.pollInterval, this.quietPeriod, localFolders));
|
|
|
|
this.watchThread.setName("File Watcher");
|
|
|
|
this.watchThread.setName("File Watcher");
|
|
|
|