feat: only try to stop if running

This commit is contained in:
2026-01-14 14:26:21 +01:00
parent 15e2c069c9
commit f4cd69db47
2 changed files with 4 additions and 14 deletions

14
Cargo.lock generated
View File

@@ -120,7 +120,7 @@ dependencies = [
[[package]]
name = "noprocess"
version = "0.0.1"
version = "0.0.2"
dependencies = [
"anyhow",
"rand",
@@ -320,18 +320,6 @@ dependencies = [
"libc",
]
[[package]]
name = "simple"
version = "0.1.0"
dependencies = [
"anyhow",
"noprocess",
"tokio",
"tokio-util",
"tracing",
"tracing-subscriber",
]
[[package]]
name = "smallvec"
version = "1.10.0"

View File

@@ -153,7 +153,9 @@ impl Inner {
return Ok(None);
};
handle.stop().await?;
if handle.is_running() {
handle.stop().await?;
}
Ok(None)
}