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:
parent
d9711b6347
commit
161829c552
1 changed files with 2 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue