about summary refs log tree commit diff stats
path: root/src/display/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-05-21 23:38:49 +0200
committerbptato <nincsnevem662@gmail.com>2023-05-21 23:38:49 +0200
commit043245445ca614963e4b60352bc28c8e8b2f2290 (patch)
tree93b182396bded34f5aba0c37efa2d348678eeccf /src/display/client.nim
parentd09319640c4b1e24b937d1fc37a3f8b82052e612 (diff)
downloadchawan-043245445ca614963e4b60352bc28c8e8b2f2290.tar.gz
Run JS jobs on timeout handlers
Diffstat (limited to 'src/display/client.nim')
-rw-r--r--src/display/client.nim2
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 = ""