diff --git a/crates/onionwire-sdk/src/lib.rs b/crates/onionwire-sdk/src/lib.rs index b81f016..90e5b55 100644 --- a/crates/onionwire-sdk/src/lib.rs +++ b/crates/onionwire-sdk/src/lib.rs @@ -225,10 +225,15 @@ impl Wire { /// attempt, stop the onion service, abort the retry worker, checkpoint the /// sqlite WAL, and drop the Tor client. /// - /// Idempotent and safe to call twice, including from two threads: the - /// second call is a no-op returning `Ok`. After it, every other method on - /// this handle — including `send` — returns `WireError.Stopped` instead of - /// touching a dead client or panicking. + /// The *node* teardown is idempotent: a second `Node::shutdown()` returns + /// `Ok` without repeating the work. This handle is spent by the first call, + /// so a second `Wire::shutdown()` — or two concurrent teardowns — returns + /// the typed `WireError.Stopped` instead of a silent `Ok`: a double + /// teardown is a caller bug worth surfacing, and `Stopped` is already the + /// answer every other method gives. It never panics. + /// + /// After it, every other method on this handle — including `send` — + /// returns `WireError.Stopped` instead of touching a dead client. /// /// Never called at all when the process is killed outright (Doze, the /// background-process killer, a force-stop): that is the case [`flush`]