mirror of https://github.com/vacp2p/nim-libp2p.git
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…
Reference in New Issue