From f4ad22b58628bbc64ac5bd2c13091ea87fa3e75e Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Mon, 2 Sep 2013 20:10:11 +0000 Subject: [PATCH] add missing cases when to shut down mutliplexer --- src/rfcomm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rfcomm.c b/src/rfcomm.c index b32029ff9..4e3007db8 100644 --- a/src/rfcomm.c +++ b/src/rfcomm.c @@ -814,7 +814,10 @@ static int rfcomm_multiplexer_hci_event_handler(uint8_t *packet, uint16_t size){ if (!multiplexer) break; log_info("L2CAP_EVENT_CHANNEL_CLOSED state %u", multiplexer->state); switch (multiplexer->state) { + case RFCOMM_MULTIPLEXER_W4_CONNECT; + case RFCOMM_MULTIPLEXER_SEND_SABM_0: case RFCOMM_MULTIPLEXER_W4_SABM_0: + case RFCOMM_MULTIPLEXER_SEND_UA_0, case RFCOMM_MULTIPLEXER_W4_UA_0: case RFCOMM_MULTIPLEXER_OPEN: rfcomm_multiplexer_finalize(multiplexer);