fix friends
This commit is contained in:
parent
aa18d1ee3e
commit
0ef484ffd2
5 changed files with 43 additions and 12 deletions
|
|
@ -8,3 +8,4 @@ thiserror = "2.0.12"
|
|||
rnex-core = { path = "../rnex-core", version = "0.1.1" }
|
||||
tokio = { version = "1.47.0", features = ["full"] }
|
||||
log = "0.4.25"
|
||||
hex = "0.4.3"
|
||||
|
|
|
|||
|
|
@ -187,17 +187,14 @@ pub async fn new_backend_connection(
|
|||
}
|
||||
};
|
||||
|
||||
if let Err(e) = stream
|
||||
.send_buffer(
|
||||
&ConnectionInitData {
|
||||
prudpsock_addr: addr,
|
||||
pid: pid,
|
||||
}
|
||||
.to_data()
|
||||
.unwrap(),
|
||||
)
|
||||
.await
|
||||
{
|
||||
let data = ConnectionInitData {
|
||||
prudpsock_addr: addr,
|
||||
pid: pid,
|
||||
}
|
||||
.to_data()
|
||||
.unwrap();
|
||||
|
||||
if let Err(e) = stream.send_buffer(&data).await {
|
||||
error!("unable to send establishment data to backend: {}", e);
|
||||
return None;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue