mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
fix(nimble): Fixed one missing ble_hs_unlock()
This commit is contained in:
@@ -2055,13 +2055,17 @@ ble_gap_rx_peroidic_adv_sync_estab(const struct ble_hci_ev_le_subev_periodic_adv
|
||||
}
|
||||
ble_conn_reattempt.count += 1;
|
||||
ble_conn_reattempt.sync_reattempt = 1;
|
||||
|
||||
ble_hs_unlock();
|
||||
|
||||
rc = ble_gap_periodic_adv_sync_create(&ble_conn_reattempt.periodic_addr, ble_conn_reattempt.adv_sid,
|
||||
&ble_conn_reattempt.periodic_params,
|
||||
ble_conn_reattempt.cb, ble_conn_reattempt.cb_arg);
|
||||
if (rc != 0) {
|
||||
ble_hs_unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
ble_hs_lock();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user