From 28da3b1d383260ac4a7c54ace04bda18c6cdd988 Mon Sep 17 00:00:00 2001 From: Mimmo La Fauci Date: Sat, 24 Mar 2012 09:10:02 +0100 Subject: [PATCH] Added verbose debug command --- WiFi/WiFiClient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WiFi/WiFiClient.cpp b/WiFi/WiFiClient.cpp index ce325cc9f..8f517cc19 100755 --- a/WiFi/WiFiClient.cpp +++ b/WiFi/WiFiClient.cpp @@ -126,7 +126,8 @@ uint8_t WiFiClient::connected() { } else { uint8_t s = status(); - return !(s == LISTEN || s == CLOSED || s == FIN_WAIT_1 || s == FIN_WAIT_2 || + return !(s == LISTEN || s == CLOSED || s == FIN_WAIT_1 || + s == FIN_WAIT_2 || s == TIME_WAIT || (s == CLOSE_WAIT && !available())); } }