未验证 提交 7ac5bd99 编写于 作者: H HubretXie 提交者: GitHub

Update at_socket.c

上级 cd0521d7
......@@ -715,7 +715,19 @@ __exit:
}
else
{
at_do_event_changes(sock, AT_EVENT_ERROR, RT_TRUE);
/* try to read Legacy data */
/* receive packet list last transmission of remaining data */
rt_mutex_take(sock->recv_lock, RT_WAITING_FOREVER);
recv_len = at_recvpkt_get(&(sock->recvpkt_list), (char *)mem, len);
rt_mutex_release(sock->recv_lock);
if(recv_len<=0)
{
at_do_event_changes(sock, AT_EVENT_ERROR, RT_TRUE);
}
else
{
result = recv_len;
}
}
return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册