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

@ -142,9 +142,10 @@ impl MTPClient {
negotiated,
error::AuthState::Unauthenticated,
client_id,
));
)
.await);
#[cfg(not(feature = "crypto"))]
Ok(connection_from_parts(config, sender, receiver, negotiated))
Ok(connection_from_parts(config, sender, receiver, negotiated).await)
}
}
@ -283,7 +284,8 @@ impl MTPClient {
crypto::negotiated_version(&response)?,
error::AuthState::Authenticated,
client_id,
))
)
.await)
}
pub async fn auth_register(
@ -440,7 +442,8 @@ impl MTPClient {
crypto::negotiated_version(&response)?,
error::AuthState::Authenticated,
assigned_id,
))
)
.await)
}
}