mirror of
https://github.com/vacp2p/nim-libp2p-experimental.git
synced 2025-01-26 10:08:56 +00:00
tmp
This commit is contained in:
parent
2c50fce3dc
commit
80c3f94945
@ -78,6 +78,8 @@ method readOnce*(
|
||||
s: WsStream,
|
||||
pbytes: pointer,
|
||||
nbytes: int): Future[int] {.async.} =
|
||||
if s.atEof:
|
||||
raise newLPStreamEOFError()
|
||||
let res = mapExceptions(await s.session.recv(pbytes, nbytes))
|
||||
|
||||
if res == 0 and s.session.readyState == ReadyState.Closed:
|
||||
|
Loading…
x
Reference in New Issue
Block a user