fix: fix compilation on iOS

This commit is contained in:
link2xt
2024-08-02 14:45:47 +00:00
parent b5eb824346
commit ee7a7a2f9d
2 changed files with 6 additions and 5 deletions

View File

@@ -1489,7 +1489,7 @@ impl Session {
} else if !context.push_subscriber.heartbeat_subscribed().await {
let context = context.clone();
// Subscribe for heartbeat notifications.
tokio::spawn(async move { context.push_subscriber.subscribe().await });
tokio::spawn(async move { context.push_subscriber.subscribe(&context).await });
}
Ok(())