mirror of
https://github.com/espressif/openthread.git
synced 2026-09-04 16:20:05 +00:00
[dataset-manager] ensure mDelayTimer is stopped when no Pending Dataset (#10268)
This commit is contained in:
@@ -670,6 +670,8 @@ void PendingDatasetManager::StartDelayTimer(void)
|
||||
{
|
||||
Dataset dataset;
|
||||
|
||||
mDelayTimer.Stop();
|
||||
|
||||
SuccessOrExit(Read(dataset));
|
||||
StartDelayTimer(dataset);
|
||||
|
||||
@@ -700,7 +702,8 @@ void PendingDatasetManager::HandleDelayTimer(void)
|
||||
Timestamp activeTimestamp;
|
||||
bool shouldReplaceActive = false;
|
||||
|
||||
IgnoreError(Read(dataset));
|
||||
SuccessOrExit(Read(dataset));
|
||||
|
||||
LogInfo("Pending delay timer expired");
|
||||
|
||||
// Determine whether the Pending Dataset should replace the
|
||||
|
||||
Reference in New Issue
Block a user