pg = new Progress();
}
+ List<MetaData> copy;
synchronized (metasLock) {
// We make sure that cached metas have precedence
if (metasMixed == null) {
}
}
}
+
+ copy = new ArrayList<MetaData>(metasMixed);
}
pg.done();
- return new ArrayList<MetaData>(metasMixed);
+ return copy;
}
@Override
MetaData meta = lib.imprt(url, pgImprt);
updateMetaCache(metasReal, meta);
- synchronized (metasLock) {
- metasMixed = null;
- }
+ metasMixed = null;
clearFromCache(meta.getLuid());