mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
lift lastFailure up so we can reference it in an outer scope
This commit is contained in:
parent
dbe4bea290
commit
b59eb6c69f
@ -3499,6 +3499,7 @@ public class MessagingController implements Runnable
|
||||
public void sendPendingMessagesSynchronous(final Account account)
|
||||
{
|
||||
Folder localFolder = null;
|
||||
Exception lastFailure = null;
|
||||
try
|
||||
{
|
||||
Store localStore = account.getLocalStore();
|
||||
@ -3515,7 +3516,6 @@ public class MessagingController implements Runnable
|
||||
localFolder.open(OpenMode.READ_WRITE);
|
||||
|
||||
Message[] localMessages = localFolder.getMessages(null);
|
||||
Exception lastFailure = null;
|
||||
int progress = 0;
|
||||
int todo = localMessages.length;
|
||||
for (MessagingListener l : getListeners())
|
||||
|
Loading…
Reference in New Issue
Block a user