Stop downloading attachments on error

This commit is contained in:
M66B
2019-01-17 10:24:36 +00:00
parent 3b06c3d027
commit 7dc4f6ecf3
2 changed files with 6 additions and 3 deletions

View File

@@ -2638,7 +2638,8 @@ public class ServiceSynchronize extends LifecycleService {
EntityAttachment attachment = attachments.get(i);
if (!attachment.available)
if (!metered || (attachment.size != null && attachment.size < maxSize))
parts.downloadAttachment(context, db, attachment.id, attachment.sequence);
if (!parts.downloadAttachment(context, db, attachment.id, attachment.sequence))
break;
}
}
}