mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-11 11:33:09 +02:00
Refactoring
This commit is contained in:
@@ -2475,13 +2475,14 @@ class Core {
|
||||
|
||||
for (int j = isub.length - 1; j >= 0 && state.isRunning() && state.isRecoverable(); j--)
|
||||
try {
|
||||
if (ids[from + j] != null)
|
||||
if (downloadMessage(
|
||||
if (ids[from + j] != null) {
|
||||
boolean fetched = downloadMessage(
|
||||
context,
|
||||
account, folder,
|
||||
istore, ifolder,
|
||||
(MimeMessage) isub[j], ids[from + j],
|
||||
state, stats))
|
||||
state, stats);
|
||||
if (fetched)
|
||||
if ((++downloaded % DOWNLOAD_YIELD_COUNT) == 0)
|
||||
try {
|
||||
Log.i(folder.name + " yield downloaded=" + downloaded);
|
||||
@@ -2489,6 +2490,7 @@ class Core {
|
||||
} catch (InterruptedException ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
}
|
||||
} catch (FolderClosedException ex) {
|
||||
throw ex;
|
||||
} catch (Throwable ex) {
|
||||
|
||||
Reference in New Issue
Block a user