8000 Add closed socket identification · ehershey/circuitpython@0c5e095 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c5e095

Browse files
committed
Add closed socket identification
1 parent 1031fe2 commit 0c5e095

File tree

1 file changed

+1
-0
lines changed
  • ports/esp32s2/common-hal/socketpool

1 file changed

+1
-0
lines changed

ports/esp32s2/common-hal/socketpool/Socket.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ void common_hal_socketpool_socket_close(socketpool_socket_obj_t* self) {
187187
if (self->num >= 0) {
188188
lwip_shutdown(self->num, 0);
189189
lwip_close(self->num);
190+
self->num = -1;
190191
}
191192
}
192193

0 commit comments

Comments
 (0)
0