Skip to content
Snippets Groups Projects
Commit 2aa6f1bc authored by Andy Green's avatar Andy Green
Browse files

adopt_socket_vhost: error path doesn't remove us from timeout list

parent 0f7e4dbd
No related branches found
No related tags found
No related merge requests found
......@@ -1315,6 +1315,8 @@ lws_adopt_socket_vhost(struct lws_vhost *vh, lws_sockfd_type accept_fd)
*/
if ((context->vhost_list->protocols[0].callback)(new_wsi,
LWS_CALLBACK_SERVER_NEW_CLIENT_INSTANTIATED, NULL, NULL, 0)) {
/* force us off the timeout list by hand */
lws_set_timeout(new_wsi, NO_PENDING_TIMEOUT, 0);
compatible_close(new_wsi->sock);
lws_free(new_wsi);
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment