From 293563ee114033db12497bfbf533c9a60d0f9bcb Mon Sep 17 00:00:00 2001 From: dom96 Date: Sat, 23 Oct 2010 23:26:08 +0100 Subject: [PATCH] Added {.final.} to objects which are not meant to be inherited, and added an OSError() when recvLine fails. --- lib/impure/ssl.nim | 2 +- lib/pure/smtp.nim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/impure/ssl.nim b/lib/impure/ssl.nim index e7c83e5c28..5a39f6f31e 100644 --- a/lib/impure/ssl.nim +++ b/lib/impure/ssl.nim @@ -13,7 +13,7 @@ import openssl, strutils, os type - TSecureSocket* = object + TSecureSocket* = object {.final.} ssl: PSSL bio: PBIO diff --git a/lib/pure/smtp.nim b/lib/pure/smtp.nim index dd270cee2e..00e636ebc8 100644 --- a/lib/pure/smtp.nim +++ b/lib/pure/smtp.nim @@ -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