Folder unexpectedly closed

pull/194/merge
M66B 4 years ago
parent 5adc82f57b
commit 26c89d7bd5

@ -182,7 +182,7 @@ class Core {
EntityAccount account, EntityFolder folder, List<TupleOperationEx> ops, EntityAccount account, EntityFolder folder, List<TupleOperationEx> ops,
Store istore, Folder ifolder, Store istore, Folder ifolder,
State state, long serial) State state, long serial)
throws JSONException { throws JSONException, FolderClosedException {
try { try {
Log.i(folder.name + " start process"); Log.i(folder.name + " start process");
@ -217,17 +217,13 @@ class Core {
if (account.protocol == EntityAccount.TYPE_IMAP && if (account.protocol == EntityAccount.TYPE_IMAP &&
!folder.local && !folder.local &&
ifolder != null && !ifolder.isOpen()) { ifolder != null && !ifolder.isOpen())
EntityLog.log(context, account.name + "/" + folder.name + " is closed"); throw new FolderClosedException(ifolder, account.name + "/" + folder.name + " unexpectedly closed");
return;
}
if (account.protocol == EntityAccount.TYPE_POP && if (account.protocol == EntityAccount.TYPE_POP &&
EntityFolder.INBOX.equals(folder.type) && EntityFolder.INBOX.equals(folder.type) &&
ifolder != null && !ifolder.isOpen()) { ifolder != null && !ifolder.isOpen())
EntityLog.log(context, account.name + "/" + folder.name + " is closed"); throw new FolderClosedException(ifolder, account.name + "/" + folder.name + " unexpectedly closed");
return;
}
// Fetch most recent copy of message // Fetch most recent copy of message
EntityMessage message = null; EntityMessage message = null;

Loading…
Cancel
Save