mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 01:47:47 +00:00
[rx-ra-tracker] use mIsRunning in stale timer callback (#12076)
`RxRaTracker` can run independently of `RoutingManager`. Its stale timer callback should check its own running state (`mIsRunning`) instead of `RoutingManager`'s state. This commit corrects the logic in `HandleStaleTimer()` to use the local `mIsRunning` flag.
This commit is contained in:
@@ -881,7 +881,7 @@ void RxRaTracker::DetermineStaleTimeFor(const RoutePrefix &aPrefix, NextFireTime
|
||||
|
||||
void RxRaTracker::HandleStaleTimer(void)
|
||||
{
|
||||
VerifyOrExit(Get<RoutingManager>().IsRunning());
|
||||
VerifyOrExit(mIsRunning);
|
||||
|
||||
LogInfo("Stale timer expired");
|
||||
mRsSender.Start();
|
||||
|
||||
Reference in New Issue
Block a user