Commit 184b9094 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when file is downloaded partially isCached returns false

parent 12c9e790
......@@ -848,6 +848,10 @@ public class BigFileCache {
logger.warn("File is supposed to be cached but it's not there... " + sourceUrl);
return false;
}
if (entry.getDownloadProgress() == null || entry.getDownloadProgress() < 100.0) {
logger.warn("File is not complete: " + entry.getLocalPath() + ".");
return false;
}
}
return entry != null;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment