diff options
author | bptato <nincsnevem662@gmail.com> | 2023-02-05 17:48:37 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-02-05 17:48:37 +0100 |
commit | 21178cc60e1d4ba3a6780c5691b9cfb5e7908aa8 (patch) | |
tree | 8db0946d00b3f60600b8177d2df3914b227125e1 /src/display | |
parent | 7e9408b80a5a8b12710ce8b14a4ee78900ee2be4 (diff) | |
download | chawan-21178cc60e1d4ba3a6780c5691b9cfb5e7908aa8.tar.gz |
Slightly improve request api (less crashes)
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/client.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/client.nim b/src/display/client.nim index 50d7383c..1902e122 100644 --- a/src/display/client.nim +++ b/src/display/client.nim @@ -84,7 +84,7 @@ proc `=destroy`(client: var ClientObj) = free(client.jsrt) proc doRequest(client: Client, req: Request): Response {.jsfunc.} = - client.loader.doRequest(req) + return client.loader.doRequest(req) proc interruptHandler(rt: JSRuntime, opaque: pointer): int {.cdecl.} = let client = cast[Client](opaque) |