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
|
import openssl, strutils, os
|
||||||
|
|
||||||
type
|
type
|
||||||
TSecureSocket* = object
|
TSecureSocket* = object {.final.}
|
||||||
ssl: PSSL
|
ssl: PSSL
|
||||||
bio: PBIO
|
bio: PBIO
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,13 +27,13 @@
|
||||||
import sockets, strutils, strtabs, ssl, base64
|
import sockets, strutils, strtabs, ssl, base64
|
||||||
|
|
||||||
type
|
type
|
||||||
TSMTP* = object
|
TSMTP* = object {.final.}
|
||||||
sock: TSocket
|
sock: TSocket
|
||||||
sslSock: TSecureSocket
|
sslSock: TSecureSocket
|
||||||
ssl: Bool
|
ssl: Bool
|
||||||
debug: Bool
|
debug: Bool
|
||||||
|
|
||||||
TMessage* = object
|
TMessage* = object {.final.}
|
||||||
msgTo: seq[String]
|
msgTo: seq[String]
|
||||||
msgCc: seq[String]
|
msgCc: seq[String]
|
||||||
msgSubject: String
|
msgSubject: String
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue