Fixes asyncnet.recvLine. Fixes #3346.
This commit is contained in:
parent
d93c612067
commit
492f5eb704
1 changed files with 1 additions and 0 deletions
|
|
@ -432,6 +432,7 @@ proc recvLine*(socket: AsyncSocket,
|
|||
|
||||
# TODO: Optimise this
|
||||
var resString = newFutureVar[string]("asyncnet.recvLine")
|
||||
resString.mget() = ""
|
||||
await socket.recvLineInto(resString, flags)
|
||||
result = resString.mget()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue