about summary refs log tree commit diff stats
path: root/src/local/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-14 21:20:02 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-14 21:21:34 +0200
commit11d102e2ba16f8f4a9976ab81d35b22da5c0ad2f (patch)
tree4f2296c51973bc6a14dcabe7c366f9a7023b7589 /src/local/client.nim
parent5b2a36579e53c69f154288a91ddc3e7c5375d7a6 (diff)
downloadchawan-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.nim2
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...