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.