1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00

Disable sync for non existing folders

This commit is contained in:
M66B 2020-10-20 16:18:43 +02:00
parent d9711b6347
commit 161829c552

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));