Compare commits

1 Commits

Author SHA1 Message Date
f4cd69db47 feat: only try to stop if running 2026-01-14 14:28:01 +01:00
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)
}