Disable sync for non existing folders

This commit is contained in:
M66B 2020-10-20 16:18:43 +02:00
parent d9711b6347
commit 161829c552
1 changed files with 2 additions and 3 deletions

View File

@ -1088,10 +1088,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
throw ex1;
}
} catch (FolderNotFoundException ex) {
if ("INBOX".equalsIgnoreCase(folder.name))
throw ex;
Log.w(folder.name, ex);
db.folder().deleteFolder(folder.id);
db.folder().setFolderError(folder.id, Log.formatThrowable(ex));
db.folder().setFolderSynchronize(folder.id, false);
continue;
} catch (Throwable ex) {
db.folder().setFolderError(folder.id, Log.formatThrowable(ex));