client perform WSI_CREATE callback
authorbjqiwei <qiweibo1984@126.com>
Tue, 15 Mar 2016 08:27:49 +0000 (16:27 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 15 Mar 2016 08:27:49 +0000 (16:27 +0800)
lib/client-handshake.c

index 96854afe75998c5dc6f68cda0518469955d28ce0..629ad060e52b257f240541b0ceb3db9010f29583 100644 (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);