client init fds pos to minus 1

Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
Andy Green 2016-04-22 12:31:50 +08:00
parent 6406f44b76
commit c93c47f3a4

View file

@ -359,6 +359,7 @@ lws_client_connect(struct lws_context *context, const char *address,
wsi->state = LWSS_CLIENT_UNCONNECTED;
wsi->protocol = NULL;
wsi->pending_timeout = NO_PENDING_TIMEOUT;
wsi->position_in_fds_table = -1;
#ifdef LWS_OPENSSL_SUPPORT
wsi->use_ssl = ssl_connection;