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,7 +276,9 @@ fire(void *ptr)
loctt->cb(loctt->cb_arg, TRICKLE_TIMER_PROTO_TX_ALLOW(loctt));
}
schedule_for_end(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