local_socket: remove the wrong assertion in local_listen()

if 2 threads call local_alloc() time and then do local_listen()
will meet this assertion

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2023-02-20 14:55:57 +08:00 committed by Xiang Xiao
parent c398375cc8
commit f9b6255895
1 changed files with 0 additions and 4 deletions

View File

@ -111,10 +111,6 @@ int local_listen(FAR struct socket *psock, int backlog)
if (server->lc_state == LOCAL_STATE_BOUND)
{
/* The connection should not reside in any other list */
DEBUGASSERT(server->lc_conn.node.flink == NULL);
/* And change the server state to listing */
server->lc_state = LOCAL_STATE_LISTENING;