mirror of
https://github.com/ratspeak/rsLXST
synced 2026-11-27 13:52:20 +00:00
telephony: preserve Rust 1.85 keepalive syntax
This commit is contained in:
1 parent
77fc059448
commit
86dfa3d012
1 file changed
+4
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user