mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
drivers/winc1500: Keep listening socket open on accept timeout.
This commit is contained in:
parent
dfee4d1b98
commit
36a5a96c50
@ -465,7 +465,9 @@ static int py_winc_socket_accept(mod_network_socket_obj_t *socket,
|
||||
int ret = winc_socket_accept(socket->fileno, &addr, &fd, socket->timeout);
|
||||
if (ret < 0) {
|
||||
*_errno = py_winc_mperrno(ret);
|
||||
py_winc_socket_close(socket);
|
||||
if (ret != SOCK_ERR_TIMEOUT) {
|
||||
py_winc_socket_close(socket);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user