diff options
author | bptato <nincsnevem662@gmail.com> | 2023-05-21 23:38:49 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-05-21 23:38:49 +0200 |
commit | 043245445ca614963e4b60352bc28c8e8b2f2290 (patch) | |
tree | 93b182396bded34f5aba0c37efa2d348678eeccf /src | |
parent | d09319640c4b1e24b937d1fc37a3f8b82052e612 (diff) | |
download | chawan-043245445ca614963e4b60352bc28c8e8b2f2290.tar.gz |
Run JS jobs on timeout handlers
Diffstat (limited to 'src')
-rw-r--r-- | src/display/client.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/display/client.nim b/src/display/client.nim index 6e9f6331..9cdf95a9 100644 --- a/src/display/client.nim +++ b/src/display/client.nim @@ -392,11 +392,13 @@ proc inputLoop(client: Client) = if Event.Timer in event.events: if event.fd in client.interval_fdis: client.intervals[client.interval_fdis[event.fd]].handler() + client.runJSJobs() elif event.fd in client.timeout_fdis: let id = client.timeout_fdis[event.fd] let timeout = client.timeouts[id] timeout.handler() client.clearTimeout(id) + client.runJSJobs() if client.pager.scommand != "": client.command(client.pager.scommand) client.pager.scommand = "" |