From 5b4892c00d3de69bec5c8a53609246528acf46b2 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Tue, 21 May 2024 14:06:24 +0200 Subject: [PATCH] report channel closed if not found --- host/src/channel_manager.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/host/src/channel_manager.rs b/host/src/channel_manager.rs index 732f765d..154df963 100644 --- a/host/src/channel_manager.rs +++ b/host/src/channel_manager.rs @@ -514,8 +514,8 @@ impl<'d, const RXQ: usize> ChannelManager<'d, RXQ> { return Ok(idx); } } - trace!("[l2cap][connected_channel_index] channel {} not found", cid); - Err(Error::NotFound) + trace!("[l2cap][connected_channel_index] channel {} closed", cid); + Err(Error::ChannelClosed) } async fn receive_pdu( @@ -625,8 +625,8 @@ impl<'d, const RXQ: usize> ChannelManager<'d, RXQ> { _ => {} } } - trace!("[l2cap][connected_channel_params] channel {} not found", cid); - Err(Error::NotFound) + trace!("[l2cap][connected_channel_params] channel {} closed", cid); + Err(Error::ChannelClosed) } // Check the current state of flow control and send flow indications if