From c51abfe67316ec5be9b8b5b90d59417de7125dba Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 17 Jul 2014 11:20:35 -0700 Subject: Fix case where sync reports new content from failed download --- src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/github') 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()) { -- cgit v1.2.3