[net][sal] Fix not clean event issue after poll get the error event in lwIP.

Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
chenyong 2019-07-25 11:20:40 +08:00
parent 7278bcb5f2
commit 232019e8d1
1 changed files with 2 additions and 0 deletions

View File

@ -273,6 +273,8 @@ static int inet_poll(struct dfs_fd *file, struct rt_pollreq *req)
if (sock->errevent)
{
mask |= POLLERR;
/* clean error event */
sock->errevent = 0;
}
rt_hw_interrupt_enable(level);
}