diff --git a/host/src/channel_manager.rs b/host/src/channel_manager.rs index e950241d..df56c5b5 100644 --- a/host/src/channel_manager.rs +++ b/host/src/channel_manager.rs @@ -510,8 +510,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( @@ -621,8 +621,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