upnp-serve compiles on its own

This commit is contained in:
Igor Katson 2024-08-30 11:55:05 +01:00
parent 6d364a96ee
commit 9a6039f5ee
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 6 additions and 3 deletions

View file

@ -10,8 +10,11 @@ readme = "README.md"
[features] [features]
default = ["sha1-crypto-hash"] default = ["sha1-crypto-hash"]
sha1-crypto-hash = ["librqbit-sha1-wrapper/sha1-crypto-hash"] sha1-crypto-hash = [
sha1-ring = ["librqbit-sha1-wrapper/sha1-ring"] "librqbit-sha1-wrapper/sha1-crypto-hash",
"librqbit-core/sha1-crypto-hash",
]
sha1-ring = ["librqbit-sha1-wrapper/sha1-ring", "librqbit-core/sha1-ring"]
[dependencies] [dependencies]
anyhow = "1.0.86" anyhow = "1.0.86"

View file

@ -322,7 +322,7 @@ impl UpnpServerStateInner {
let (sid, refresh_notify) = self let (sid, refresh_notify) = self
.connection_manager_subscriptions .connection_manager_subscriptions
.add(url.clone(), timeout); .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 notify it of system id changes.
// Spawn a task that will wait for timeout or subscription refreshes. // Spawn a task that will wait for timeout or subscription refreshes.