local: connect operation should jump self's connection
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
cd5ab80f2f
commit
390de249a0
@ -269,6 +269,13 @@ int psock_local_connect(FAR struct socket *psock,
|
||||
net_lock();
|
||||
while ((conn = local_nextconn(conn)) != NULL)
|
||||
{
|
||||
/* Slef found, continue */
|
||||
|
||||
if (conn == psock->s_conn)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Handle according to the server connection type */
|
||||
|
||||
switch (conn->lc_type)
|
||||
|
Loading…
Reference in New Issue
Block a user