mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user