Skip to content

Commit 1a288c1

Browse files
author
Veijo Pesonen
committed
Fixes internal bookkeeping of closed sockets
1 parent 1dcf4b4 commit 1a288c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ESP8266/ESP8266.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ bool ESP8266::close(int id)
746746
return true;
747747
}
748748
} else {
749+
_socket_open[id].id = -1;
749750
_clear_socket_packets(id);
750751
_smutex.unlock();
751752
return true;

0 commit comments

Comments
 (0)