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:
Łukasz Rymanowski
2016-12-13 22:08:10 +01:00
parent d27e1e9b14
commit 1a42c7d0ea
+1 -1
View File
@@ -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; ");