Added {.final.} to objects which are not meant to be inherited, and added an OSError() when recvLine fails.
This commit is contained in:
parent
4922b52dea
commit
293563ee11
2 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@
|
|||
import openssl, strutils, os
|
||||
|
||||
type
|
||||
TSecureSocket* = object
|
||||
TSecureSocket* = object {.final.}
|
||||
ssl: PSSL
|
||||
bio: PBIO
|
||||
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@
|
|||
import sockets, strutils, strtabs, ssl, base64
|
||||
|
||||
type
|
||||
TSMTP* = object
|
||||
TSMTP* = object {.final.}
|
||||
sock: TSocket
|
||||
sslSock: TSecureSocket
|
||||
ssl: Bool
|
||||
debug: Bool
|
||||
|
||||
TMessage* = object
|
||||
TMessage* = object {.final.}
|
||||
msgTo: seq[String]
|
||||
msgCc: seq[String]
|
||||
msgSubject: String
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue