We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64f8f0a + 47c46c4 commit 2a48aa5Copy full SHA for 2a48aa5
libraries/Ethernet/EthernetClient.cpp
@@ -41,7 +41,7 @@ int EthernetClient::connect(IPAddress ip, uint16_t port) {
41
42
for (int i = 0; i < MAX_SOCK_NUM; i++) {
43
uint8_t s = W5100.readSnSR(i);
44
- if (s == SnSR::CLOSED || s == SnSR::FIN_WAIT) {
+ if (s == SnSR::CLOSED || s == SnSR::FIN_WAIT || s == SnSR::CLOSE_WAIT) {
45
_sock = i;
46
break;
47
}
0 commit comments