From 0e11ee92dac5ddb83a9f0909efba9756aee0761d Mon Sep 17 00:00:00 2001 From: Nivedita Sarkar Date: Fri, 3 Feb 2023 11:45:04 -0800 Subject: [PATCH] Reset mStopPolling to false when we call PrepareForTransfer to start polling again - This covers the use case where we have an image available but the requestor rejects the transfer for some reason. On the next query image the requestor is able to continue with the BDX transfer. The provider state was not being reset for this scenario due to the polling flag not being reset. - Fixes #23573 --- src/protocols/bdx/TransferFacilitator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protocols/bdx/TransferFacilitator.cpp b/src/protocols/bdx/TransferFacilitator.cpp index 767d16313994e4..3195bb4749ac36 100644 --- a/src/protocols/bdx/TransferFacilitator.cpp +++ b/src/protocols/bdx/TransferFacilitator.cpp @@ -102,6 +102,7 @@ CHIP_ERROR Responder::PrepareForTransfer(System::Layer * layer, TransferRole rol mPollFreq = pollFreq; mSystemLayer = layer; + mStopPolling = false; ReturnErrorOnFailure(mTransfer.WaitForTransfer(role, xferControlOpts, maxBlockSize, timeout));