aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-17 11:20:35 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-17 11:20:35 -0700
commitc51abfe67316ec5be9b8b5b90d59417de7125dba (patch)
treea82a8dd8a1485be24307ff7f379233ded835e3a1 /src
parent4586729a9280076072be4450bdd653ab66a317e8 (diff)
downloaddsub-c51abfe67316ec5be9b8b5b90d59417de7125dba.tar.gz
dsub-c51abfe67316ec5be9b8b5b90d59417de7125dba.tar.bz2
dsub-c51abfe67316ec5be9b8b5b90d59417de7125dba.zip
Fix case where sync reports new content from failed download
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java b/src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java
index d0b3b706..d9bf0e24 100644
--- a/src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java
+++ b/src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java
@@ -131,7 +131,9 @@ public class SubsonicSyncAdapter extends AbstractThreadedSyncAdapter {
DownloadFile file = new DownloadFile(context, song, save);
while(!(save && file.isSaved() || !save && file.isCompleteFileAvailable()) && !file.isFailedMax()) {
file.downloadNow(musicService);
- downloaded = true;
+ if(!file.isFailed()) {
+ downloaded = true;
+ }
}
if(paths != null && file.isCompleteFileAvailable()) {