Subject: [PATCH] Additional check for EISONN. On iOS "if (connect()) == -1 ||
 errno == EISCONN)" doesn't work.
diff --git a/lib/client-handshake.c b/lib/client-handshake.c
index a241c90..83d8f21 100644
--- a/lib/client-handshake.c
+++ b/lib/client-handshake.c
@@ -93,8 +93,11 @@
 			return wsi;
 		}
 
-		lwsl_debug("Connect failed errno=%d\n", errno);
-		goto failed;
+		if (errno != EISCONN) {
+		
+			lwsl_debug("Connect failed errno=%d\n", errno);
+			goto failed;
+		}
 	}
 
 	lwsl_client("connected\n");