Revert "Check if folders are actually alive"

This reverts commit 72ede04868.
pull/178/head
M66B 5 years ago
parent bb7b937ac7
commit c37d212042

@ -586,16 +586,6 @@ class Core {
});
}
static boolean isAlive(IMAPFolder ifolder) {
try {
noop(ifolder);
} catch (MessagingException ex) {
Log.i(ifolder.getFullName(), ex);
return false;
}
return true;
}
private static void onSeen(Context context, JSONArray jargs, EntityFolder folder, EntityMessage message, IMAPFolder ifolder) throws MessagingException, JSONException {
// Mark message (un)seen
DB db = DB.getInstance(context);

@ -1348,7 +1348,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
if (folder.synchronize)
if (!folder.poll && capIdle) {
// Sends folder NOOP
if (!Core.isAlive(mapFolders.get(folder)))
if (!mapFolders.get(folder).isOpen())
throw new StoreClosedException(iservice.getStore(), folder.name);
} else {
if (folder.poll_count == 0)

Loading…
Cancel
Save