there is no point in collecting data if fs rescan is needed

This commit is contained in:
Eugene Zhuravlev
2012-05-12 17:22:02 +02:00
parent b2535b83f6
commit 731b34a439
@@ -834,13 +834,17 @@ public class BuildManager implements ApplicationComponent{
}
public void addChanged(Collection<String> paths) {
myDeleted.removeAll(paths);
myChanged.addAll(paths);
if (!myNeedRescan) {
myDeleted.removeAll(paths);
myChanged.addAll(paths);
}
}
public void addDeleted(Collection<String> paths) {
myChanged.removeAll(paths);
myDeleted.addAll(paths);
if (!myNeedRescan) {
myChanged.removeAll(paths);
myDeleted.addAll(paths);
}
}
public CmdlineRemoteProto.Message.ControllerMessage.FSEvent createNextEvent() {