mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-02 16:17:54 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user