4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-18 22:52:17 +08:00

Merge pull request #2895 from Lawlieta/develop

[net][sal] Fix not clean event issue after poll get the error event in lwIP
This commit is contained in:
Bernard Xiong 2019-07-26 05:57:19 +08:00 committed by GitHub
commit 531f07172b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}