Skip to content

Commit

Permalink
Issue #15935 [ota-requestor] Cancel the TransferTimeout timer when Qu…
Browse files Browse the repository at this point in the history
…eryImage download succeeds or aborts (#15936)
  • Loading branch information
isiu-apple authored and pull[bot] committed Aug 3, 2023
1 parent a5a43ac commit 157909e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/clusters/ota-requestor/BDXDownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ System::Clock::Timeout BDXDownloader::GetTimeout()
void BDXDownloader::Reset()
{
mPrevBlockCounter = 0;
DeviceLayer::SystemLayer().StartTimer(mTimeout, TransferTimeoutCheckHandler, this);
DeviceLayer::SystemLayer().CancelTimer(TransferTimeoutCheckHandler, this);
}

bool BDXDownloader::HasTransferTimedOut()
Expand Down

0 comments on commit 157909e

Please sign in to comment.