send connecting on android
This commit is contained in:
parent
d5d9395655
commit
eb3f3afa60
@ -32,6 +32,8 @@ public class SocketHandler {
|
|||||||
public void connect(final String host, final int port, final boolean useTLS, final boolean acceptInvalidCertificates) {
|
public void connect(final String host, final int port, final boolean useTLS, final boolean acceptInvalidCertificates) {
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
|
delegate.onStateChanged(id, "connecting");
|
||||||
|
|
||||||
if (useTLS) {
|
if (useTLS) {
|
||||||
SSLContext sslContext = SSLContext.getInstance("TLS");
|
SSLContext sslContext = SSLContext.getInstance("TLS");
|
||||||
if (acceptInvalidCertificates) {
|
if (acceptInvalidCertificates) {
|
||||||
|
Loading…
Reference in New Issue
Block a user