Skip to content

Commit

Permalink
Fix timer scheduling regression
Browse files Browse the repository at this point in the history
Fixes #571
  • Loading branch information
rojer committed Feb 11, 2021
1 parent 1e09dac commit d52032f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mgos_timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d52032f

Please sign in to comment.