arkhipenko / TaskScheduler

Cooperative multitasking for Arduino, ESPx, STM32, nRF and other microcontrollers
http://playground.arduino.cc/Code/TaskScheduler
BSD 3-Clause "New" or "Revised" License
1.24k stars 226 forks source link

fix deletion of self-destruct tasks in disableAll() #182

Closed schlimmchen closed 8 months ago

schlimmchen commented 8 months ago

instead of deleting iCurrent multiple times, the task which was just disabled and has the self-destruct request flag set, shall be deleted.

adjust the respective example to disable the remaining 5 tasks using disableAll(), which then shows that not all memory is freed.

arkhipenko commented 8 months ago

Pushed into testing branch as v3.8.4

Thank you for all your help @schlimmchen