From 70730490b2a409ffe828fcc03e83003ae2d5d001 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Fri, 2 Oct 2026 21:04:18 +0200 Subject: [PATCH] fix: In SMTP loop, reset `transport_id` and `from` when disconnecting (#8797) Previously, when we disconnected from the current transport, we forgot to reset the `transport_id` and `from`. I couldn't find any bug that is caused by this today, but it was a lingering problem. --- src/smtp.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/smtp.rs b/src/smtp.rs index 6d52be053..6707dca59 100644 --- a/src/smtp.rs +++ b/src/smtp.rs @@ -68,6 +68,8 @@ impl Smtp { // separate task to avoid waiting for reply or timeout. task::spawn(async move { transport.quit().await }); } + self.transport_id = None; + self.from = None; self.last_success = None; }