diff --git a/CHANGELOG.md b/CHANGELOG.md index 850a05104..1b66a8f9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Fix Peerstate comparison #3962 - Log SOCKS5 configuration for IMAP like already done for SMTP #3964 - Fix SOCKS5 usage for IMAP #3965 +- Exit from recently seen loop on interrupt channel errors to avoid busy looping #3966 ### API-Changes - jsonrpc: add verified-by information to `Contact`-Object diff --git a/src/contact.rs b/src/contact.rs index 33b51ab8e..056797de0 100644 --- a/src/contact.rs +++ b/src/contact.rs @@ -1612,6 +1612,9 @@ impl RecentlySeenLoop { context, "Error receiving an interruption in recently seen loop: {}", err ); + // Maybe the sender side is closed. + // Terminate the loop to avoid looping indefinitely. + return; } Ok(Ok(RecentlySeenInterrupt { contact_id,