send connecting on android

This commit is contained in:
eskimo 2024-10-28 15:01:11 -04:00
parent d5d9395655
commit eb3f3afa60

View File

@ -32,6 +32,8 @@ public class SocketHandler {
public void connect(final String host, final int port, final boolean useTLS, final boolean acceptInvalidCertificates) {
new Thread(() -> {
try {
delegate.onStateChanged(id, "connecting");
if (useTLS) {
SSLContext sslContext = SSLContext.getInstance("TLS");
if (acceptInvalidCertificates) {