add eof and closed handling
This commit is contained in:
parent
62da2a05c3
commit
0f691cbafd
|
@ -167,6 +167,9 @@ method pushTo*(s: BufferStream, data: seq[byte]) {.base, async.} =
|
||||||
## is preserved.
|
## is preserved.
|
||||||
##
|
##
|
||||||
|
|
||||||
|
if s.atEof:
|
||||||
|
raise newLPStreamEOFError()
|
||||||
|
|
||||||
if s.atEof:
|
if s.atEof:
|
||||||
raise newLPStreamEOFError()
|
raise newLPStreamEOFError()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue