This commit is contained in:
didfet
2015-06-05 18:45:25 +02:00
parent 56b932ee2e
commit a9b7c96178
3 changed files with 20 additions and 13 deletions

View File

@@ -314,6 +314,9 @@ public class FileWatcher {
List<File> markedList = null;
for(File file : oldWatchMap.keySet()) {
FileState state = oldWatchMap.get(file);
if(state.getRandomAccessFile() == null) {
state.setDeleted();
}
if(state.isDeleted()) {
if(! file.exists()) {
if(markedList == null) {
@@ -328,8 +331,7 @@ public class FileWatcher {
}
if(markedList != null) {
for(File file : markedList) {
FileState state = oldWatchMap.remove(file);
oldWatchMap.remove(file);
logger.trace("\tFile : " + file + " removed");
}
}