Double check if folder exists on op error

pull/194/merge
M66B 3 years ago
parent 721be14b4d
commit 2919ca93bb

@ -1998,9 +1998,11 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
} catch (Throwable ex) {
Log.e(folder.name, ex);
EntityLog.log(ServiceSynchronize.this, EntityLog.Type.Account, folder,
account.name + "/" + folder.name + " process " + Log.formatThrowable(ex, false));
account.name + "/" + folder.name + " process " + ex + "\n" + android.util.Log.getStackTraceString(ex));
db.folder().setFolderError(folder.id, Log.formatThrowable(ex));
if (!(ex instanceof FolderNotFoundException))
// NO Mailbox doesn't exist
if (!(ex instanceof FolderNotFoundException) &&
iservice.getStore().getFolder(folder.name).exists())
state.error(new Core.OperationCanceledExceptionEx("Process", ex));
} finally {
if (shouldClose) {

Loading…
Cancel
Save