From 52cc1ecd7b1103f2131b03f36cf152b80d8e6f07 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 af67cdd..118b231 100644 --- a/WifiInboundHandler.cpp +++ b/WifiInboundHandler.cpp @@ -248,7 +248,7 @@ void WifiInboundHandler::purgeCurrentCIPSEND() { // A CIPSEND was sent but errored... or the client closed just toss it away CommandDistributor::forget(clientPendingCIPSEND); 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; }