From 9a6039f5ee788065442e0013ed0c47675e187343 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Fri, 30 Aug 2024 11:55:05 +0100 Subject: [PATCH] upnp-serve compiles on its own --- crates/upnp-serve/Cargo.toml | 7 +++++-- crates/upnp-serve/src/subscriptions.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/upnp-serve/Cargo.toml b/crates/upnp-serve/Cargo.toml index 6a134f3..176b116 100644 --- a/crates/upnp-serve/Cargo.toml +++ b/crates/upnp-serve/Cargo.toml @@ -10,8 +10,11 @@ readme = "README.md" [features] default = ["sha1-crypto-hash"] -sha1-crypto-hash = ["librqbit-sha1-wrapper/sha1-crypto-hash"] -sha1-ring = ["librqbit-sha1-wrapper/sha1-ring"] +sha1-crypto-hash = [ + "librqbit-sha1-wrapper/sha1-crypto-hash", + "librqbit-core/sha1-crypto-hash", +] +sha1-ring = ["librqbit-sha1-wrapper/sha1-ring", "librqbit-core/sha1-ring"] [dependencies] anyhow = "1.0.86" diff --git a/crates/upnp-serve/src/subscriptions.rs b/crates/upnp-serve/src/subscriptions.rs index f3fdd80..929bac5 100644 --- a/crates/upnp-serve/src/subscriptions.rs +++ b/crates/upnp-serve/src/subscriptions.rs @@ -322,7 +322,7 @@ impl UpnpServerStateInner { let (sid, refresh_notify) = self .connection_manager_subscriptions .add(url.clone(), timeout); - let token = self.cancel_token.child_token(); + let token = self.cancel_token.clone(); // Spawn a task that will notify it of system id changes. // Spawn a task that will wait for timeout or subscription refreshes.