Merge branch 'bugfix/fix_crash_for_non_triggered_timer' into 'nimble-1.3.0-idf'

Nimble: Fix crash when attempting to delete a non-started timer

See merge request espressif/esp-nimble!90
This commit is contained in:
Rahul Tank
2021-07-09 05:54:26 +00:00
+2 -2
View File
@@ -368,8 +368,8 @@ void
npl_freertos_callout_deinit(struct ble_npl_callout *co)
{
#if CONFIG_BT_NIMBLE_USE_ESP_TIMER
ESP_ERROR_CHECK(esp_timer_stop(co->handle));
ESP_ERROR_CHECK(esp_timer_delete(co->handle));
ESP_ERROR_CHECK_WITHOUT_ABORT(esp_timer_stop(co->handle));
ESP_ERROR_CHECK_WITHOUT_ABORT(esp_timer_delete(co->handle));
#else
if (co->handle) {
xTimerDelete(co->handle, portMAX_DELAY);