Refactoring

pull/184/head
M66B 4 years ago
parent 3de3e6215b
commit 6cce237c4c

@ -2475,13 +2475,14 @@ class Core {
for (int j = isub.length - 1; j >= 0 && state.isRunning() && state.isRecoverable(); j--) for (int j = isub.length - 1; j >= 0 && state.isRunning() && state.isRecoverable(); j--)
try { try {
if (ids[from + j] != null) if (ids[from + j] != null) {
if (downloadMessage( boolean fetched = downloadMessage(
context, context,
account, folder, account, folder,
istore, ifolder, istore, ifolder,
(MimeMessage) isub[j], ids[from + j], (MimeMessage) isub[j], ids[from + j],
state, stats)) state, stats);
if (fetched)
if ((++downloaded % DOWNLOAD_YIELD_COUNT) == 0) if ((++downloaded % DOWNLOAD_YIELD_COUNT) == 0)
try { try {
Log.i(folder.name + " yield downloaded=" + downloaded); Log.i(folder.name + " yield downloaded=" + downloaded);
@ -2489,6 +2490,7 @@ class Core {
} catch (InterruptedException ex) { } catch (InterruptedException ex) {
Log.w(ex); Log.w(ex);
} }
}
} catch (FolderClosedException ex) { } catch (FolderClosedException ex) {
throw ex; throw ex;
} catch (Throwable ex) { } catch (Throwable ex) {

Loading…
Cancel
Save