1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

lift lastFailure up so we can reference it in an outer scope

This commit is contained in:
Jesse Vincent 2010-12-19 01:30:07 +00:00
parent dbe4bea290
commit b59eb6c69f

View File

@ -3499,6 +3499,7 @@ public class MessagingController implements Runnable
public void sendPendingMessagesSynchronous(final Account account) public void sendPendingMessagesSynchronous(final Account account)
{ {
Folder localFolder = null; Folder localFolder = null;
Exception lastFailure = null;
try try
{ {
Store localStore = account.getLocalStore(); Store localStore = account.getLocalStore();
@ -3515,7 +3516,6 @@ public class MessagingController implements Runnable
localFolder.open(OpenMode.READ_WRITE); localFolder.open(OpenMode.READ_WRITE);
Message[] localMessages = localFolder.getMessages(null); Message[] localMessages = localFolder.getMessages(null);
Exception lastFailure = null;
int progress = 0; int progress = 0;
int todo = localMessages.length; int todo = localMessages.length;
for (MessagingListener l : getListeners()) for (MessagingListener l : getListeners())