Add closed socket identification
This commit is contained in:
parent
1031fe2992
commit
0c5e0954db
|
@ -187,6 +187,7 @@ void common_hal_socketpool_socket_close(socketpool_socket_obj_t* self) {
|
||||||
if (self->num >= 0) {
|
if (self->num >= 0) {
|
||||||
lwip_shutdown(self->num, 0);
|
lwip_shutdown(self->num, 0);
|
||||||
lwip_close(self->num);
|
lwip_close(self->num);
|
||||||
|
self->num = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue