From 82ab4b3f777dc1d64416bcb7e379819644af0ded Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Thu, 16 Jun 2011 15:22:25 +0000 Subject: [PATCH] forgot to remove channel from list when declient by client --- src/rfcomm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rfcomm.c b/src/rfcomm.c index 0a0d5c5de..f5076c5e6 100644 --- a/src/rfcomm.c +++ b/src/rfcomm.c @@ -1444,6 +1444,8 @@ void rfcomm_decline_connection_internal(uint16_t rfcomm_cid){ case RFCOMM_CHANNEL_W4_CLIENT_AFTER_PN_CMD: log_dbg("-> Sending DM_PF for #%u\n", channel->dlci); rfcomm_send_dm_pf(channel->multiplexer, channel->dlci); + // remove from list + linked_list_remove( &rfcomm_channels, (linked_item_t *) channel); // free channel free(channel); rfcomm_multiplexer_prepare_idle_timer(multiplexer);