mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(bt/bluedroid): Fixed work queue delete when create thread failed
This commit is contained in:
@ -271,10 +271,10 @@ _err:
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < thread->work_queue_num; i++) {
|
for (int i = 0; i < thread->work_queue_num; i++) {
|
||||||
if (thread->work_queues[i]) {
|
if (thread->work_queues && thread->work_queues[i]) {
|
||||||
osi_work_queue_delete(thread->work_queues[i]);
|
osi_work_queue_delete(thread->work_queues[i]);
|
||||||
|
thread->work_queues[i] = NULL;
|
||||||
}
|
}
|
||||||
thread->work_queues[i] = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thread->work_queues) {
|
if (thread->work_queues) {
|
||||||
|
@ -420,7 +420,7 @@ static void esp_gap_cb(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *par
|
|||||||
}
|
}
|
||||||
case ESP_GAP_BLE_EXT_SCAN_START_COMPLETE_EVT:
|
case ESP_GAP_BLE_EXT_SCAN_START_COMPLETE_EVT:
|
||||||
if (param->ext_scan_start.status != ESP_BT_STATUS_SUCCESS) {
|
if (param->ext_scan_start.status != ESP_BT_STATUS_SUCCESS) {
|
||||||
ESP_LOGE(GATTC_TAG, "scan start failed, error status = %x", param->scan_start_cmpl.status);
|
ESP_LOGE(GATTC_TAG, "scan start failed, error status = %x", param->ext_scan_start.status);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ESP_LOGI(GATTC_TAG, "Scan start success");
|
ESP_LOGI(GATTC_TAG, "Scan start success");
|
||||||
|
Reference in New Issue
Block a user