From b59eb6c69f5b32ba20a2e3f6a701c37f42871461 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 19 Dec 2010 01:30:07 +0000 Subject: [PATCH] lift lastFailure up so we can reference it in an outer scope --- src/com/fsck/k9/controller/MessagingController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/controller/MessagingController.java b/src/com/fsck/k9/controller/MessagingController.java index 331850a9c..7492427a4 100644 --- a/src/com/fsck/k9/controller/MessagingController.java +++ b/src/com/fsck/k9/controller/MessagingController.java @@ -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())