mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Removed fast error handling
This commit is contained in:
@@ -373,6 +373,15 @@ public class ConnectionHelper {
|
||||
return false;
|
||||
}
|
||||
|
||||
static boolean isMaxConnections(Throwable ex) {
|
||||
while (ex != null) {
|
||||
if (isMaxConnections(ex.getMessage()))
|
||||
return true;
|
||||
ex = ex.getCause();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static boolean isMaxConnections(String message) {
|
||||
return (message != null &&
|
||||
(message.contains("Too many simultaneous connections") /* Gmail */ ||
|
||||
|
||||
Reference in New Issue
Block a user