Suppress connection exceptions

This commit is contained in:
M66B 2019-06-27 09:18:57 +02:00
parent 44a55a677a
commit b11f948451
2 changed files with 9 additions and 0 deletions

View File

@ -2182,6 +2182,11 @@ class Core {
ex.getCause() instanceof ConnectionException))
recoverable = false;
if (ex instanceof ConnectionException)
// failed to create new store connection
// BYE, Socket is closed
recoverable = false;
if (ex instanceof FolderClosedException ||
ex instanceof FolderNotFoundException)
recoverable = false;

View File

@ -59,6 +59,7 @@ import androidx.lifecycle.LifecycleOwner;
import androidx.preference.PreferenceManager;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.sun.mail.iap.ConnectionException;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
@ -398,6 +399,9 @@ public class Helper {
ex.getCause() instanceof MessageRemovedException)
return null;
if (ex instanceof ConnectionException)
return null;
if (ex instanceof FolderClosedException)
return null;