mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-01-11 17:24:09 +00:00
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.
|
||||
##
|
||||
|
||||
if s.atEof:
|
||||
raise newLPStreamEOFError()
|
||||
|
||||
if s.atEof:
|
||||
raise newLPStreamEOFError()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user