mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Stop downloading attachments on error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user