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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy