client account for retries

Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
Andy Green 2016-04-22 12:29:44 +08:00
parent 42e8b189dc
commit 81bf43b34f

View file

@ -278,6 +278,9 @@ lws_client_connect_2(struct lws *wsi)
oom4:
/* we're closing, losing some rx is OK */
wsi->u.hdr.ah->rxpos = wsi->u.hdr.ah->rxlen;
/* take care that we might be inserted in fds already */
if (wsi->position_in_fds_table != -1)
goto failed;
lws_header_table_detach(wsi, 0);
lws_free(wsi);