|
|
@ -1224,8 +1224,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|
|
|
if (folder.synchronize && !folder.poll && mapFolders.get(folder) != null) {
|
|
|
|
if (folder.synchronize && !folder.poll && mapFolders.get(folder) != null) {
|
|
|
|
db.folder().setFolderState(folder.id, "closing");
|
|
|
|
db.folder().setFolderState(folder.id, "closing");
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
mapFolders.get(folder).close();
|
|
|
|
if (iservice.getStore().isConnected())
|
|
|
|
} catch (MessagingException ex) {
|
|
|
|
mapFolders.get(folder).close();
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
Log.w(ex);
|
|
|
|
Log.w(ex);
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
db.folder().setFolderState(folder.id, null);
|
|
|
|
db.folder().setFolderState(folder.id, null);
|
|
|
|