fix(blufi): Fix BLUFI NimBLE deinit race due to disconnect callbacks

This commit is contained in:
Rahul Tank
2026-09-03 21:27:16 +05:30
parent 938ce4f4d1
commit 56fa9afcda
2 changed files with 9 additions and 0 deletions
@@ -502,6 +502,10 @@ esp_blufi_gap_event(struct ble_gap_event *event, void *arg)
blufi_env.aggr_buf = NULL;
}
if (!blufi_env.enabled) {
return 0;
}
btc_msg_t msg;
esp_blufi_cb_param_t param;