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 Mar 8, 2022
1 parent c0373bb commit 70f2e48
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 70f2e48

Please sign in to comment.