From 995a9c92d91dc91c91b0e55f2eb8572f8a344c16 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Wed, 28 Aug 2013 13:26:04 +0100 Subject: [PATCH] Only schedule a trickle interval doubling for running timers --- core/lib/trickle-timer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lib/trickle-timer.c b/core/lib/trickle-timer.c index 1297fdb4d..97a620767 100644 --- a/core/lib/trickle-timer.c +++ b/core/lib/trickle-timer.c @@ -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