Fix fileInputs.readable(n)
This commit is contained in:
parent
69fc4e24ee
commit
2c87f53c03
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue