Merge pull request #607 from FlavioBayer/patch-1

bugfix/ets_timer.c: race condition while disarming
This commit is contained in:
Ruslan V. Uss 2018-04-14 00:11:10 +05:00 committed by GitHub
commit 0fa4213577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,9 +244,9 @@ void sdk_ets_timer_disarm(ets_timer_t *timer)
prev = curr; prev = curr;
curr = curr->next; curr = curr->next;
} }
vPortExitCritical();
timer->next = ETS_TIMER_NOT_ARMED; timer->next = ETS_TIMER_NOT_ARMED;
timer->period_ticks = 0; timer->period_ticks = 0;
vPortExitCritical();
} }
/** /**