This commit is contained in:
Andreas Rumpf
2016-01-31 01:32:09 +01:00
parent 5a33e8795e
commit ec1abdef97

View File

@@ -829,7 +829,7 @@ proc readLine*(socket: Socket, line: var TaintedString, timeout = -1,
template addNLIfEmpty(): stmt =
if line.len == 0:
line.add("\c\L")
line.string.add("\c\L")
template raiseSockError(): stmt {.dirty, immediate.} =
let lastError = getSocketError(socket)