mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-21 00:17:22 +00:00
nimble/gap: Fix for missing ble_hs_unlock
Use goto done; so lock can be released properly X-Original-Commit: bd546f763a9b68c3a09de867845bec3a3208e88a
This commit is contained in:
@@ -1897,7 +1897,7 @@ ble_gap_adv_start(uint8_t own_addr_type, uint8_t peer_addr_type,
|
||||
|
||||
rc = ble_hs_id_use_addr(own_addr_type);
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
goto done;
|
||||
}
|
||||
|
||||
BLE_HS_LOG(INFO, "GAP procedure initiated: advertise; ");
|
||||
|
||||
Reference in New Issue
Block a user