Fix fileInputs.readable(n)

This commit is contained in:
Zahary Karadjov 2020-04-14 16:58:51 +03:00
commit 2c87f53c03
No known key found for this signature in database
GPG key ID: C8936F8A3073D609

View file

@ -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