From dd2c0e4f501fcf860fe6b5eb67d14e07bbe43532 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 24 Mar 2024 17:02:58 +0100 Subject: buffer: fix clone --- src/io/posixstream.nim | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/io') diff --git a/src/io/posixstream.nim b/src/io/posixstream.nim index bdae9d50..bfd925f2 100644 --- a/src/io/posixstream.nim +++ b/src/io/posixstream.nim @@ -44,12 +44,6 @@ method recvData*(s: PosixStream, buffer: pointer, len: int): int = proc sreadChar*(s: PosixStream): char = let n = read(s.fd, addr result, 1) - if n < 0: - raisePosixIOError() - if n == 0: - if unlikely(s.isend): - raise newException(EOFError, "eof") - s.isend = true assert n == 1 method sendData*(s: PosixStream, buffer: pointer, len: int): int = -- cgit