Only schedule a trickle interval doubling for running timers
This commit is contained in:
parent
fa7219d0b8
commit
995a9c92d9
|
@ -276,8 +276,10 @@ fire(void *ptr)
|
|||
loctt->cb(loctt->cb_arg, TRICKLE_TIMER_PROTO_TX_ALLOW(loctt));
|
||||
}
|
||||
|
||||
if(trickle_timer_is_running(loctt)) {
|
||||
schedule_for_end(loctt);
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* New trickle interval, either due to a newly set trickle timer or due to an
|
||||
* inconsistency. Schedule 'fire' to be called in t ticks. */
|
||||
|
|
Loading…
Reference in a new issue