Skip to content
Snippets Groups Projects
Commit 184b9094 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when file is downloaded partially isCached returns false

parent 12c9e790
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!464Resolve "upgrade 3rd party libraries"
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment