[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")
|
var sendFut = smtp.debugSend("QUIT")
|
||||||
sendFut.callback =
|
sendFut.callback =
|
||||||
proc () =
|
proc () =
|
||||||
# TODO: Fix this in async procs.
|
retFuture.fail(newException(ReplyError, msg))
|
||||||
raise newException(ReplyError, msg)
|
|
||||||
return retFuture
|
return retFuture
|
||||||
|
|
||||||
proc checkReply(smtp: Smtp | AsyncSmtp, reply: string) {.multisync.} =
|
proc checkReply(smtp: Smtp | AsyncSmtp, reply: string) {.multisync.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue