aboutsummaryrefslogtreecommitdiff
path: root/libraries/Ethernet/EthernetClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/Ethernet/EthernetClient.cpp')
-rw-r--r--libraries/Ethernet/EthernetClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/Ethernet/EthernetClient.cpp b/libraries/Ethernet/EthernetClient.cpp
index a77a62b..9885efb 100644
--- a/libraries/Ethernet/EthernetClient.cpp
+++ b/libraries/Ethernet/EthernetClient.cpp
@@ -41,7 +41,7 @@ int EthernetClient::connect(IPAddress ip, uint16_t port) {
for (int i = 0; i < MAX_SOCK_NUM; i++) {
uint8_t s = W5100.readSnSR(i);
- if (s == SnSR::CLOSED || s == SnSR::FIN_WAIT) {
+ if (s == SnSR::CLOSED || s == SnSR::FIN_WAIT || s == SnSR::CLOSE_WAIT) {
_sock = i;
break;
}