From 7c637c2faf2fdc096fb0788f3856c00bd9e164b0 Mon Sep 17 00:00:00 2001 From: Phạm Ngọc Quang Nam Date: Wed, 19 Jun 2019 05:26:59 +0700 Subject: [bugfix] Fix smtp.nim unhandled exception (#11498) --- lib/pure/smtp.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/pure/smtp.nim b/lib/pure/smtp.nim index 1e621a9e2..02d6f6f54 100644 --- a/lib/pure/smtp.nim +++ b/lib/pure/smtp.nim @@ -163,8 +163,7 @@ proc quitExcpt(smtp: AsyncSmtp, msg: string): Future[void] = var sendFut = smtp.debugSend("QUIT") sendFut.callback = proc () = - # TODO: Fix this in async procs. - raise newException(ReplyError, msg) + retFuture.fail(newException(ReplyError, msg)) return retFuture proc checkReply(smtp: Smtp | AsyncSmtp, reply: string) {.multisync.} = -- cgit 1.4.1-2-gfad0