Added unrecoverable favicon errors

pull/183/head
M66B 4 years ago
parent 33f3674486
commit 93c91ba4a5

@ -55,6 +55,7 @@ import java.net.SocketTimeoutException;
import java.net.URL; import java.net.URL;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.security.cert.CertPathValidatorException;
import java.security.cert.CertificateException; import java.security.cert.CertificateException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
@ -495,10 +496,12 @@ public class ContactInfo {
(ex instanceof SSLException && (ex instanceof SSLException &&
"Unable to parse TLS packet header".equals(ex.getMessage())) || "Unable to parse TLS packet header".equals(ex.getMessage())) ||
(ex instanceof SSLHandshakeException && (ex instanceof SSLHandshakeException &&
"connection closed".equals(ex.getMessage())) || ("connection closed".equals(ex.getMessage())) ||
"Connection closed by peer".equals(ex.getMessage())) ||
(ex instanceof SSLHandshakeException && (ex instanceof SSLHandshakeException &&
(ex.getCause() instanceof CertificateException || (ex.getCause() instanceof SSLProtocolException ||
ex.getCause() instanceof SSLProtocolException))); ex.getCause() instanceof CertificateException ||
ex.getCause() instanceof CertPathValidatorException)));
} }
static void init(final Context context) { static void init(final Context context) {

Loading…
Cancel
Save