Skip to content

Commit

Permalink
oom
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1281 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
borg-0300 committed Jan 3, 2006
1 parent 7da232b commit b24fcc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/de/anomic/plasma/plasmaHTCache.java
Expand Up @@ -272,8 +272,9 @@ private boolean deleteURLfromCache (URL url, String msg) {

private boolean deleteFile(File obj) {
if (obj.exists() && !filesInUse.contains(obj)) {
long size = obj.length();
if (obj.delete()) {
this.currCacheSize -= obj.length();
this.currCacheSize -= size;
return true;
}
}
Expand Down

0 comments on commit b24fcc8

Please sign in to comment.