add missing cases when to shut down mutliplexer

This commit is contained in:
matthias.ringwald@gmail.com 2013-09-02 20:10:11 +00:00
parent 85212a37af
commit f4ad22b586

View File

@ -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);