diff options
author | bptato <nincsnevem662@gmail.com> | 2023-05-22 01:11:00 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-05-22 01:11:00 +0200 |
commit | addea03eb7f5d9caee2f20c3b81685da75afceec (patch) | |
tree | c8ce7eb705d344d1c263c8ec639f70c6ec169989 /src | |
parent | 043245445ca614963e4b60352bc28c8e8b2f2290 (diff) | |
download | chawan-addea03eb7f5d9caee2f20c3b81685da75afceec.tar.gz |
Run JS jobs in headless mode too
As previous commit, just for headless mode
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 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 |