diff options
author | bptato <nincsnevem662@gmail.com> | 2024-09-14 21:20:02 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-09-14 21:21:34 +0200 |
commit | 11d102e2ba16f8f4a9976ab81d35b22da5c0ad2f (patch) | |
tree | 4f2296c51973bc6a14dcabe7c366f9a7023b7589 /src/local/client.nim | |
parent | 5b2a36579e53c69f154288a91ddc3e7c5375d7a6 (diff) | |
download | chawan-11d102e2ba16f8f4a9976ab81d35b22da5c0ad2f.tar.gz |
loader: improve map interface
directly accessing map was a bit too error prone
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index e96b5163..b8e131f8 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -516,7 +516,7 @@ proc handleError(client: Client; fd: int) = #TODO do something here... stderr.write("Fork server crashed :(\n") client.quit(1) - elif client.loader.map[fd] != nil: + elif client.loader.get(fd) != nil: discard client.loader.onError(fd) #TODO handle connection error? elif fd in client.loader.unregistered: discard # already unregistered... |