mirror of
https://github.com/egor-white/zaprett.git
synced 2025-12-10 05:19:42 +05:00
fix non-expected error in stop_service()
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user