Removed fast error handling

This commit is contained in:
M66B
2020-10-28 20:09:38 +01:00
parent a8690f58cb
commit 7aea1370ca
2 changed files with 20 additions and 34 deletions

View File

@@ -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 */ ||