summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/smtp.nim3
1 files changed, 1 insertions, 2 deletions
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.} =