Skip to content

Commit 0399caa

Browse files
committed
Remove incorrect certificate warning
javax.net.ssl.SSLHandshakeException can be thrown for a variety of reasons that are not related to the certificate being invalid, most notably socket errors while trying to negotate the TLS session. This can result in spurious warnings about the remote host serving an invalid certificate when a connection is closed, and can easily be triggered by a network change.
1 parent 475b361 commit 0399caa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

android/src/main/java/com/mattermost/networkclient/NetworkClient.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ internal class NetworkClient(private val context: Context, private val baseUrl:
246246
return
247247
}
248248
} else if (e is javax.net.ssl.SSLHandshakeException) {
249-
rejectInvalidCertificate(promise, request.url.host)
250249
return
251250
}
252251
promise.reject(e)

0 commit comments

Comments
 (0)