Merge pull request #4845 from k9mail/drop_failing_commands
Remove failed pending commands
This commit is contained in:
commit
9b0cf36c5f
1 changed files with 11 additions and 0 deletions
|
@ -730,8 +730,19 @@ public class MessagingController {
|
|||
} else {
|
||||
throw me;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Timber.e("Unexpected exception with command '%s', removing command from queue", command);
|
||||
localStore.removePendingCommand(processingCommand);
|
||||
|
||||
if (K9.DEVELOPER_MODE) {
|
||||
throw new AssertionError("Unexpected exception while processing pending command", e);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: When removing a pending command due to an error the local changes should be reverted. Pending
|
||||
// commands that depend on this command should be canceled and local changes be reverted. In most cases
|
||||
// the user should be notified about the failure as well.
|
||||
}
|
||||
} catch (MessagingException me) {
|
||||
notifyUserIfCertificateProblem(account, me, true);
|
||||
Timber.e(me, "Could not process command '%s'", processingCommand);
|
||||
|
|
Loading…
Reference in a new issue