diff --git a/WifiInboundHandler.cpp b/WifiInboundHandler.cpp index a3768ad..56742d5 100644 --- a/WifiInboundHandler.cpp +++ b/WifiInboundHandler.cpp @@ -246,7 +246,7 @@ WifiInboundHandler::INBOUND_STATE WifiInboundHandler::loop2() { void WifiInboundHandler::purgeCurrentCIPSEND() { // A CIPSEND was sent but errored... or the client closed just toss it away DIAG(F("Wifi: DROPPING CIPSEND=%d,%d"),clientPendingCIPSEND,currentReplySize); - for (int i=0;i<=currentReplySize;i++) outboundRing->read(); + for (int i=0;iread(); pendingCipsend=false; clientPendingCIPSEND=-1; }