aboutsummaryrefslogtreecommitdiffstats
path: root/timer.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--timer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/timer.c b/timer.c
index 3bb504d..174e1e3 100644
--- a/timer.c
+++ b/timer.c
@@ -170,12 +170,10 @@ int timer_process(struct timespec *delay)
}
/* process expired timers */
- flag = 0;
for (i = 0; i < nTimers; i++) {
if (Timers[i].active == 0)
continue;
if (!timercmp(&Timers[i].when, &now, >)) {
- flag = 1;
/* callback */
if (Timers[i].callback != NULL) {
Timers[i].callback(Timers[i].data);