mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-30 19:56:10 +00:00
Suppress connection exceptions
This commit is contained in:
parent
44a55a677a
commit
b11f948451
2 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue