diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-12-08 13:28:14 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-12-08 13:28:14 -0800 |
commit | a46564fa65d1cdf304bf8e84553efc0686066b75 (patch) | |
tree | d0a2617587f6cbbc1e63cb41e5f97f364ca683bb /subsonic-android/src | |
parent | a6e46790aae2d2cda2cef6f9f3c27fb755c64faa (diff) | |
download | dsub-a46564fa65d1cdf304bf8e84553efc0686066b75.tar.gz dsub-a46564fa65d1cdf304bf8e84553efc0686066b75.tar.bz2 dsub-a46564fa65d1cdf304bf8e84553efc0686066b75.zip |
Speed up space cleanup
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/util/CacheCleaner.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/CacheCleaner.java b/subsonic-android/src/github/daneren2005/dsub/util/CacheCleaner.java index eee014b6..83c2c415 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/CacheCleaner.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/CacheCleaner.java @@ -94,6 +94,7 @@ public class CacheCleaner { long bytesDeleted = 0L; for (File file : files) { + if(!deletePartials && bytesDeleted > bytesToDelete) break; if (file.getName().equals(Constants.ALBUM_ART_FILE)) { // Move artwork to new folder. |