mirror of https://github.com/M66B/FairEmail.git
Disable sync for non existing folders
This commit is contained in:
parent
d9711b6347
commit
161829c552
|
@ -1088,10 +1088,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
throw ex1;
|
throw ex1;
|
||||||
}
|
}
|
||||||
} catch (FolderNotFoundException ex) {
|
} catch (FolderNotFoundException ex) {
|
||||||
if ("INBOX".equalsIgnoreCase(folder.name))
|
|
||||||
throw ex;
|
|
||||||
Log.w(folder.name, 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;
|
continue;
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
db.folder().setFolderError(folder.id, Log.formatThrowable(ex));
|
db.folder().setFolderError(folder.id, Log.formatThrowable(ex));
|
||||||
|
|
Loading…
Reference in New Issue