mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
terminal: delayed rendering: fdm_delayed_render() may be called with is_armged==false
This would happen if *both* timers triggered in the same epoll() call.
This commit is contained in:
parent
2286bcf23d
commit
fb0801fa56
1 changed files with 2 additions and 1 deletions
|
|
@ -172,7 +172,8 @@ fdm_delayed_render(struct fdm *fdm, int fd, int events, void *data)
|
|||
return false;
|
||||
|
||||
struct terminal *term = data;
|
||||
assert(term->delayed_render_timer.is_armed);
|
||||
if (!term->delayed_render_timer.is_armed)
|
||||
return true;
|
||||
|
||||
uint64_t unused;
|
||||
ssize_t ret1 = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue