Fix typo
This commit is contained in:
parent
e4c46e6fba
commit
436a5a01ab
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ proc sendBuffer*(socket: AsyncSocket, buf: pointer, size: int,
|
||||||
if socket.isSsl:
|
if socket.isSsl:
|
||||||
when defineSsl:
|
when defineSsl:
|
||||||
sslLoop(socket, flags,
|
sslLoop(socket, flags,
|
||||||
sslWrite(socket.sslHandle, cast[pointer](buf), size.cint))
|
sslWrite(socket.sslHandle, cast[cstring](buf), size.cint))
|
||||||
await sendPendingSslData(socket, flags)
|
await sendPendingSslData(socket, flags)
|
||||||
else:
|
else:
|
||||||
await sendBuffer(socket.fd.AsyncFD, buf, size, flags)
|
await sendBuffer(socket.fd.AsyncFD, buf, size, flags)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue