Skip to content

Commit

Permalink
Reset mStopPolling to false when we call PrepareForTransfer to start …
Browse files Browse the repository at this point in the history
…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 project-chip#23573
  • Loading branch information
nivi-apple committed Feb 3, 2023
1 parent 15c255e commit 0e11ee9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/protocols/bdx/TransferFacilitator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 0e11ee9

Please sign in to comment.