about summary refs log tree commit diff stats
path: root/src/display
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-05-22 01:11:00 +0200
committerbptato <nincsnevem662@gmail.com>2023-05-22 01:11:00 +0200
commitaddea03eb7f5d9caee2f20c3b81685da75afceec (patch)
treec8ce7eb705d344d1c263c8ec639f70c6ec169989 /src/display
parent043245445ca614963e4b60352bc28c8e8b2f2290 (diff)
downloadchawan-addea03eb7f5d9caee2f20c3b81685da75afceec.tar.gz
Run JS jobs in headless mode too
As previous commit, just for headless mode
Diffstat (limited to 'src/display')
-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 9cdf95a9..5067ced7 100644
--- a/src/display/client.nim
+++ b/src/display/client.nim
@@ -428,11 +428,13 @@ proc headlessLoop(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()
     client.acceptBuffers()
 
 #TODO this is dumb