Skip to content

Commit d52032f

Browse files
committed
Fix timer scheduling regression
Fixes #571
1 parent 1e09dac commit d52032f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mgos_timers.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ static void mgos_timer_ev(struct mg_connection *nc, int ev, void *ev_data,
9898
} else {
9999
LIST_REMOVE(ti, entries);
100100
}
101+
} else {
102+
ti = NULL;
101103
}
102104
schedule_next_timer(td, now);
103105
mgos_runlock(s_timer_data_lock);

0 commit comments

Comments
 (0)