mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-27 12:00:44 +00:00
add eof and closed handling
This commit is contained in:
parent
e876a16062
commit
8ca1027ef9
@ -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…
x
Reference in New Issue
Block a user