Only schedule a trickle interval doubling for running timers

This commit is contained in:
George Oikonomou 2013-08-28 13:26:04 +01:00
parent fa7219d0b8
commit 995a9c92d9

View File

@ -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. */