}
}
public void updateLinkState(Download d) {
if (Model.parseLinks(d)) {
LinkState oldValue = linkStateValuesMap.get(d);
LinkState state = d.getLinkState();
boolean doUpdate = false;
if (oldValue == null || !oldValue.equals(state)) {
doUpdate = true;
}
if (doUpdate) {
if (oldValue == null) {
oldValue = new LinkState();
}
oldValue.copy(state);
dao.updateDownload(d, Download.PROP_LINKSTATE);
}
}