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