mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-18 18:06:27 -04:00
[BT] fix mutex lock
Unlock mutex if fixed_queue_enqueue() fails,
This commit is contained in:
parent
91e8312f03
commit
17f5de8854
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user