mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-07 04:14:19 +00:00
[bugfix] Fix smtp.nim unhandled exception (#11498)
This commit is contained in:
committed by
Andreas Rumpf
parent
8ee0f14ab6
commit
7c637c2faf
@@ -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.} =
|
||||
|
||||
Reference in New Issue
Block a user