net/hosts: Drop q lock when possible.

This commit is contained in:
parazyd
2024-02-27 10:49:12 +01:00
parent de78b48549
commit d9b8bcf84a

View File

@@ -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 {