diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-15 11:52:26 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-15 11:52:26 +0200 |
commit | 73c9788a7bd64a7f74d9e40b8ab5963817dad59e (patch) | |
tree | e9cc21dcda6bcd5c3471602fcec634299856d970 /src/local/client.nim | |
parent | 2cf74b74d1c57940037d23c4a7b44ba2afd38725 (diff) | |
download | chawan-73c9788a7bd64a7f74d9e40b8ab5963817dad59e.tar.gz |
Fix compilation with --assertions:off
Remove side effects from assert statements. The flag is not used currently, but let's not depend on that.
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index 7b27e9c4..70293d70 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -407,7 +407,8 @@ proc inputLoop(client: Client) = client.attrs = getWindowAttributes(client.console.tty) client.pager.windowChange(client.attrs) if selectors.Event.Timer in event.events: - assert client.timeouts.runTimeoutFd(event.fd) + let r = client.timeouts.runTimeoutFd(event.fd) + assert r client.runJSJobs() client.console.container.requestLines().then(proc() = client.console.container.cursorLastLine()) @@ -439,7 +440,8 @@ proc headlessLoop(client: Client) = if Error in event.events: client.handleError(event.fd) if selectors.Event.Timer in event.events: - assert client.timeouts.runTimeoutFd(event.fd) + let r = client.timeouts.runTimeoutFd(event.fd) + assert r client.runJSJobs() client.loader.unregistered.setLen(0) client.acceptBuffers() |