mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 05:20:31 +00:00
[bugfix] Fix smtp.nim unhandled exception (#11498)
(cherry picked from commit 7c637c2faf)
This commit is contained in:
committed by
narimiran
parent
c57485e67b
commit
368e12ed36
@@ -149,8 +149,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.} =
|
||||
|
||||
Reference in New Issue
Block a user