Bug fix: Stop the DAO lifetime timer in RPL instances when released.
Clearing the memory for an active etimer/ctimer might corrupt the timer list and cause other timers to be lost or infinite loops. The DAO lifetime timer is only used when RPL route lifetime is not infinite but then the timer will cause problems if not stopped.
This commit is contained in:
parent
61ec5bf896
commit
d160943f16
@ -513,6 +513,7 @@ rpl_free_instance(rpl_instance_t *instance)
|
||||
|
||||
ctimer_stop(&instance->dio_timer);
|
||||
ctimer_stop(&instance->dao_timer);
|
||||
ctimer_stop(&instance->dao_lifetime_timer);
|
||||
|
||||
if(default_instance == instance) {
|
||||
default_instance = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user