Skip to content

Commit 44f65da

Browse files
committed
Set _active to NULL later
1 parent c627a60 commit 44f65da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ProcessScheduler/Scheduler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ int Scheduler::run()
196196
#ifdef _PROCESS_TIMEOUT_INTERRUPTS
197197
DISABLE_SCHEDULER_ISR();
198198
#endif
199-
_active = NULL; //done!
200199
//////////////////////END PROCESS SERVICING//////////////////////
201200

202201
#ifdef _PROCESS_STATISTICS
@@ -213,7 +212,8 @@ int Scheduler::run()
213212
if (_active->wasServiced(force)) {
214213
disable(*_active);
215214
}
216-
215+
_active = NULL; //done!
216+
217217
count++; // incr counter
218218
processQueue();
219219
delay(0); // For esp8266

0 commit comments

Comments
 (0)