From 109e8965067e380b5df8ee9bb8c09c903085a8f1 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Wed, 2 Apr 2025 16:47:07 +0300 Subject: [PATCH] tor: clean error after start --- src/tor/tor.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tor/tor.rs b/src/tor/tor.rs index 4efcadb5..3bc0a63b 100644 --- a/src/tor/tor.rs +++ b/src/tor/tor.rs @@ -302,6 +302,10 @@ impl Tor { let mut w_services = TOR_SERVER_STATE.starting_services.write(); w_services.remove(&service_id); + // Remove service from failed. + let mut w_services = + TOR_SERVER_STATE.failed_services.write(); + w_services.remove(id); // Check again after 50 seconds. Duration::from_millis(50000) }