ssl pending buffered reads use linked list
[platform/upstream/libwebsockets.git] / lib / libwebsockets.c
index 2295cc0..1d8af8d 100644 (file)
@@ -209,6 +209,8 @@ just_kill_connection:
         * delete socket from the internal poll list if still present
         */
 
+       lws_ssl_remove_wsi_from_buffered_list(context, wsi);
+
        remove_wsi_socket_from_fds(context, wsi);
 
        wsi->state = WSI_STATE_DEAD_SOCKET;