fix friends

This commit is contained in:
Maple 2026-04-06 16:42:08 +02:00
commit 0ef484ffd2
5 changed files with 43 additions and 12 deletions

View file

@ -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"

View file

@ -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;
};