mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
Fixes asyncnet.recvLine. Fixes #3346.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user