Update at_socket.c

at socket 接收数据正常时清除错误标识
This commit is contained in:
HubretXie 2018-11-01 18:43:04 +08:00 committed by GitHub
parent b9d6336526
commit 61bb8a05d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ __exit:
{
result = recv_len;
at_do_event_changes(sock, AT_EVENT_RECV, RT_FALSE);
errno = 0;
if (!rt_slist_isempty(&sock->recvpkt_list))
{
at_do_event_changes(sock, AT_EVENT_RECV, RT_TRUE);