mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-20 16:01:29 +00:00
* Fix net.readLine infine loop #17534 * fix #17534 add return to template
This commit is contained in:
@@ -1535,6 +1535,7 @@ proc readLine*(socket: Socket, line: var string, timeout = -1,
|
||||
if flags.isDisconnectionError(lastError):
|
||||
setLen(line, 0)
|
||||
socket.socketError(n, lastError = lastError, flags = flags)
|
||||
return
|
||||
|
||||
var waited: Duration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user