This commit is contained in:
parent
590810ce59
commit
b6483b7f6d
6 changed files with 198 additions and 73 deletions
|
|
@ -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")]
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue