fixes #15177, the error message is now what it should have been (#15195)

This commit is contained in:
Andreas Rumpf
2020-08-17 14:32:52 +02:00
committed by GitHub
parent cd28fe2ef7
commit 6feb3900b1
2 changed files with 3 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ when defineSsl:
else:
type
SslContext* = void # TODO: Workaround #4797.
SslContext* = ref object # TODO: Workaround #4797.
const
BufferSize*: int = 4000 ## size of a buffered socket's buffer

View File

@@ -87,7 +87,7 @@ proc debugSend*(smtp: Smtp | AsyncSmtp, cmd: string) {.multisync.} =
await smtp.sock.send(cmd)
proc debugRecv*(smtp: Smtp | AsyncSmtp): Future[TaintedString] {.multisync.} =
## Receives a line of data from the socket connected to the
## Receives a line of data from the socket connected to the
## SMTP server.
##
## If the ``smtp`` object was created with ``debug`` enabled,
@@ -112,8 +112,7 @@ proc quitExcpt(smtp: Smtp, msg: string) =
const compiledWithSsl = defined(ssl)
when not defined(ssl):
type PSSLContext = ref object
let defaultSSLContext: PSSLContext = nil
let defaultSSLContext: SSLContext = nil
else:
var defaultSSLContext {.threadvar.}: SSLContext