The firmware does not disconnect the first TCP client


I have found the following behavior regarding the TCP server and I wonder if anyone can confirm it and if there is a workaround/fix for it.

In softap.cpp, method void handle_client(wiced_tcp_socket_t& client), the call to wiced_tcp_server_disconnect_socket(&server_, &client) returns WICED_ERROR for the very first tcp client (any further connection will work as expected). The side-effect of this behavior is that the first client socket will not get disconnected and a timeout will occur on the client side.