From 708661b17af3fb018a268142cfeafa289dbb75f0 Mon Sep 17 00:00:00 2001 From: "James C. Owens" Date: Fri, 29 Mar 2024 10:28:24 -0400 Subject: [PATCH] Reversion of the removal of cntPartsRcvd decrement and increment --- src/gridcoin/scraper/scraper_net.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gridcoin/scraper/scraper_net.cpp b/src/gridcoin/scraper/scraper_net.cpp index e00fb4d9e4..31f32da201 100644 --- a/src/gridcoin/scraper/scraper_net.cpp +++ b/src/gridcoin/scraper/scraper_net.cpp @@ -139,7 +139,13 @@ int CSplitBlob::addPartData(CDataStream&& vData) { /* missing data; use the supplied data */ /* prevent calling the Complete callback FIXME: make this look better */ + if (cntPartsRcvd > 0) { + cntPartsRcvd--; + } + CSplitBlob::RecvPart(nullptr, vData); + + cntPartsRcvd++; } return n; }