mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-12 12:10:03 +00:00
Merge pull request #162 from ccollins476ad/spurious-update
nimble/host: Remove spurious conn-update callback
This commit is contained in:
@@ -1004,8 +1004,10 @@ ble_gap_conn_broken(uint16_t conn_handle, int reason)
|
||||
entry = ble_gap_update_entry_remove(conn_handle);
|
||||
ble_hs_unlock();
|
||||
|
||||
ble_gap_update_notify(conn_handle, reason);
|
||||
ble_gap_update_entry_free(entry);
|
||||
if (entry != NULL) {
|
||||
ble_gap_update_notify(conn_handle, reason);
|
||||
ble_gap_update_entry_free(entry);
|
||||
}
|
||||
|
||||
/* Indicate the connection termination to each module. The order matters
|
||||
* here: gatts must come before gattc to ensure the application does not
|
||||
|
||||
Reference in New Issue
Block a user