diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-07-17 11:20:35 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-07-17 11:20:35 -0700 |
commit | c51abfe67316ec5be9b8b5b90d59417de7125dba (patch) | |
tree | a82a8dd8a1485be24307ff7f379233ded835e3a1 | |
parent | 4586729a9280076072be4450bdd653ab66a317e8 (diff) | |
download | dsub-c51abfe67316ec5be9b8b5b90d59417de7125dba.tar.gz dsub-c51abfe67316ec5be9b8b5b90d59417de7125dba.tar.bz2 dsub-c51abfe67316ec5be9b8b5b90d59417de7125dba.zip |
Fix case where sync reports new content from failed download
-rw-r--r-- | src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java | 4 |
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()) { |