Fix native ping connection lifecycle
Some checks failed
CI / checks (push) Failing after 2m49s

This commit is contained in:
Alois 2026-07-28 22:26:45 +02:00
commit b6483b7f6d
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
6 changed files with 198 additions and 73 deletions

View file

@ -159,7 +159,7 @@ impl MTPConnection {
}
}
pub(crate) fn connection_from_parts(
pub(crate) async fn connection_from_parts(
config: ClientConfig,
sender: mtp_transport::Sender,
receiver: mtp_transport::Receiver,
@ -168,7 +168,7 @@ pub(crate) fn connection_from_parts(
#[cfg(feature = "crypto")] client_id: u64,
) -> MTPConnection {
let remote_addr = sender.handle().remote_addr();
let ping = start_ping_session(&config, sender.clone(), &receiver);
let ping = start_ping_session(&config, sender.clone(), &receiver).await;
#[cfg(feature = "pipes")]
{