From cc1cdc35ecced34810fab1cac2b3614b9805e47a Mon Sep 17 00:00:00 2001 From: Asbelos Date: Tue, 21 Dec 2021 10:16:45 +0000 Subject: [PATCH] one-off error in CIPSEND drop --- WifiInboundHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }