mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #1788 from openmv/winc_sock_close
drivers/winc1500: Set NIC to NULL on closing sockets.
This commit is contained in:
commit
d3930c1408
@ -429,6 +429,7 @@ static void py_winc_socket_close(mod_network_socket_obj_t *socket)
|
|||||||
socket->fileno = -1; // Mark socket FD as invalid
|
socket->fileno = -1; // Mark socket FD as invalid
|
||||||
m_del(winc_socket_buf_t, socket->_private, 1);
|
m_del(winc_socket_buf_t, socket->_private, 1);
|
||||||
socket->_private = NULL;
|
socket->_private = NULL;
|
||||||
|
socket->nic = MP_OBJ_NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user