fix deadlock

This commit is contained in:
Shane Pearman committed 2025-09-18 04:28:58 +02:00
1 parent 6456ea46db
commit afa4d19baa
1 file changed
+1
+1
View File
@@ -137,6 +137,7 @@ impl Client {
log::trace!("sending to {} on link {}", peer.dest, link_id);
let link = link.lock().await;
let packet = link.data_packet(&bytes).unwrap();
drop(link);
transport.send_packet(packet).await;
} else {
log::warn!("could not get link {} for peer {}", link_id, peer.dest);