Update at_socket.c
at socket 接收数据正常时清除错误标识
This commit is contained in:
parent
b9d6336526
commit
61bb8a05d2
@ -700,7 +700,7 @@ __exit:
|
|||||||
{
|
{
|
||||||
result = recv_len;
|
result = recv_len;
|
||||||
at_do_event_changes(sock, AT_EVENT_RECV, RT_FALSE);
|
at_do_event_changes(sock, AT_EVENT_RECV, RT_FALSE);
|
||||||
|
errno = 0;
|
||||||
if (!rt_slist_isempty(&sock->recvpkt_list))
|
if (!rt_slist_isempty(&sock->recvpkt_list))
|
||||||
{
|
{
|
||||||
at_do_event_changes(sock, AT_EVENT_RECV, RT_TRUE);
|
at_do_event_changes(sock, AT_EVENT_RECV, RT_TRUE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user