about summary refs log tree commit diff stats
path: root/src/local/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-12 14:09:53 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-12 14:09:53 +0100
commit0cc8f357d8f44fcfccd141c078d34ed4530fec5b (patch)
treed07478d4895e9ae008d4d0cba704db3f6bd4ecbf /src/local/client.nim
parent2ac31dd859c84697d108c88dd1b22b5ffa5beb95 (diff)
downloadchawan-0cc8f357d8f44fcfccd141c078d34ed4530fec5b.tar.gz
io: add dynstream
a new abstraction that we derive posixstream from; hopefully with time
we can get rid of std/streams
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 b707fe84..df8491fb 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -460,7 +460,7 @@ proc acceptBuffers(client: Client) =
   let pager = client.pager
   while pager.unreg.len > 0:
     let (pid, stream) = pager.unreg.pop()
-    let fd = int(stream.fd)
+    let fd = int(stream.source.fd)
     if fd in client.fdmap:
       client.selector.unregister(fd)
       client.fdmap.del(fd)