From 2c87f53c03b75da401aae625896721a88c626999 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 14 Apr 2020 16:58:51 +0300 Subject: [PATCH] Fix fileInputs.readable(n) --- faststreams/input_stream.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faststreams/input_stream.nim b/faststreams/input_stream.nim index b0e8520..81236ff 100644 --- a/faststreams/input_stream.nim +++ b/faststreams/input_stream.nim @@ -176,7 +176,7 @@ proc readable*(s: InputStream, n: int): bool = if distance(s.head, s.bufferEnd) >= n: return true - if s.vtable == nil: + if s.vtable == nil or s.vtable.readSync == nil: return false # TODO