telephony: preserve Rust 1.85 keepalive syntax

This commit is contained in:
DeFiDude committed 2026-08-16 16:48:33 -06:00
1 parent 77fc059448
commit 86dfa3d012
1 file changed
+4 -4
+4 -4
View File
@@ -2710,10 +2710,10 @@ impl TelephonyRnsEndpoint {
);
let queued =
self.queue_prepared_control(link_id, LinkEndpointRole::Initiator, prepared);
if queued.is_ok()
&& let Some(state) = self.outgoing_links.get_mut(&link_id)
{
state.link.record_tx_keepalive(1);
if queued.is_ok() {
if let Some(state) = self.outgoing_links.get_mut(&link_id) {
state.link.record_tx_keepalive(1);
}
}
if queued.is_err() {
let _ = self.close_outgoing_link_locally(link_id);