From d9b8bcf84a4df3ed05771df4caffbc1c656825d5 Mon Sep 17 00:00:00 2001 From: parazyd Date: Tue, 27 Feb 2024 10:49:12 +0100 Subject: [PATCH] net/hosts: Drop q lock when possible. --- src/net/hosts/store.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/hosts/store.rs b/src/net/hosts/store.rs index 9bdf06cdb..45e512e97 100644 --- a/src/net/hosts/store.rs +++ b/src/net/hosts/store.rs @@ -665,6 +665,7 @@ impl Hosts { if *retries == self.settings.hosts_quarantine_limit { debug!(target: "net::hosts::quarantine()", "Reached quarantine limited after {:?}", timer.elapsed()); debug!(target: "net::hosts::quarantine()", "Removing from hostlist {}", addr); + drop(q); self.downgrade_host(addr, last_seen).await; } } else {