[BT] fix mutex lock

Unlock mutex if fixed_queue_enqueue() fails,
This commit is contained in:
tgotic 2022-09-02 10:41:33 +02:00
parent 91e8312f03
commit 17f5de8854

View File

@ -865,7 +865,6 @@ static void btc_spp_write(btc_spp_args_t *arg)
BTA_JvRfcommWrite(arg->write.handle, slot->id, arg->write.len, arg->write.p_data);
} else {
ret = ESP_SPP_NO_RESOURCE;
break;
}
}
osi_mutex_unlock(&spp_local_param.spp_slot_mutex);