client perform WSI_CREATE callback

This commit is contained in:
bjqiwei 2016-03-15 16:27:49 +08:00 committed by Andy Green
parent d36fa29ac4
commit 934cc2a8ce

View file

@ -171,7 +171,8 @@ lws_client_connect_2(struct lws *wsi)
* past here, we can't simply free the structs as error
* handling as oom4 does. We have to run the whole close flow.
*/
wsi->protocol->callback(wsi, LWS_CALLBACK_WSI_CREATE,
wsi->user_space, NULL, 0);
lws_set_timeout(wsi,
PENDING_TIMEOUT_AWAITING_CONNECT_RESPONSE,
AWAITING_TIMEOUT);