From d52032f9b27836ec0ec00c6fc5cb49403e08c7cf Mon Sep 17 00:00:00 2001 From: "Deomid \"rojer\" Ryabkov" Date: Thu, 11 Feb 2021 23:34:39 +0300 Subject: [PATCH] Fix timer scheduling regression Fixes https://github.com/cesanta/mongoose-os/issues/571 --- src/mgos_timers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mgos_timers.c b/src/mgos_timers.c index c09efbb5a..232241e7c 100644 --- a/src/mgos_timers.c +++ b/src/mgos_timers.c @@ -98,6 +98,8 @@ static void mgos_timer_ev(struct mg_connection *nc, int ev, void *ev_data, } else { LIST_REMOVE(ti, entries); } + } else { + ti = NULL; } schedule_next_timer(td, now); mgos_runlock(s_timer_data_lock);