mirror of
https://github.com/apache/nuttx.git
synced 2026-09-24 08:45:04 +08:00
modify for set conn status with connected when receive event USRSOCK_EVENT_SENDTO_READY
This commit is contained in:
@@ -77,7 +77,8 @@ int usrsock_event(FAR struct usrsock_conn_s *conn)
|
||||
conn->state = USRSOCK_CONN_STATE_READY;
|
||||
events |= USRSOCK_EVENT_CONNECT_READY;
|
||||
|
||||
if (conn->resp.result == 0)
|
||||
if ((conn->resp.result == 0) ||
|
||||
(events & USRSOCK_EVENT_SENDTO_READY))
|
||||
{
|
||||
conn->connected = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user