[bugfix] Fix smtp.nim unhandled exception (#11498)
This commit is contained in:
parent
8ee0f14ab6
commit
7c637c2faf
1 changed files with 1 additions and 2 deletions
|
|
@ -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.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue