about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-14 11:58:01 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-14 11:58:01 +0100
commit811484c125162fa30aec11288e1ef3101382de88 (patch)
treec2f07f7792eb817a0682f389c5b696eb6a3cadb7 /src/buffer
parentcd6a4c275030e9f66eb6807fc965d667a67ce55f (diff)
downloadchawan-811484c125162fa30aec11288e1ef3101382de88.tar.gz
cssparser: check for EOF in first read chunk
To-do: use decoderstream...
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/buffer.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer/buffer.nim b/src/buffer/buffer.nim
index 5d69325f..d28ebbb0 100644
--- a/src/buffer/buffer.nim
+++ b/src/buffer/buffer.nim
@@ -1107,8 +1107,8 @@ proc runBuffer(buffer: Buffer, rfd: int) =
           if event.fd == rfd:
             try:
               buffer.readCommand()
-            except IOError:
-              #eprint "ERROR IN BUFFER", $buffer.location & "\nMESSAGE:",
+            except EOFError:
+              #eprint "EOF error", $buffer.location & "\nMESSAGE:",
               #       getCurrentExceptionMsg() & "\n",
               #       getStackTrace(getCurrentException())
               break loop