Skip to content

Commit a75ca4a

Browse files
13627105546xiaoxiang781216
authored andcommitted
modify for set conn status with connected when receive event USRSOCK_EVENT_SENDTO_READY
1 parent df47241 commit a75ca4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/usrsock/usrsock_event.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ int usrsock_event(FAR struct usrsock_conn_s *conn)
7777
conn->state = USRSOCK_CONN_STATE_READY;
7878
events |= USRSOCK_EVENT_CONNECT_READY;
7979

80-
if (conn->resp.result == 0)
80+
if ((conn->resp.result == 0) ||
81+
(events & USRSOCK_EVENT_SENDTO_READY))
8182
{
8283
conn->connected = true;
8384
}

0 commit comments

Comments
 (0)