fix non-expected error in stop_service()

This commit is contained in:
white
2025-12-04 16:25:16 +03:00
parent 59e7970bf2
commit 6b35a0673a

View File

@@ -90,7 +90,8 @@ pub async fn stop_service() -> anyhow::Result<()> {
}; };
if !service_status().await? { if !service_status().await? {
bail!("zaprett service already stopped") info!("zaprett service already stopped");
return Ok(())
} }
clear_iptables_rules().expect("clear iptables rules"); clear_iptables_rules().expect("clear iptables rules");