* Fix net.readLine infine loop #17534 * fix #17534 add return to template
This commit is contained in:
parent
085580a2c8
commit
e45b1e3f36
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue