8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91995db commit 399f110Copy full SHA for 399f110
src/Task.h
@@ -57,7 +57,8 @@ class Task
57
Task(uint32_t timeInterval) :
58
_timeInterval(timeInterval),
59
_remainingTime(0),
60
- _taskState(TaskState_Stopped)
+ _taskState(TaskState_Stopped),
61
+ _pNext(NULL)
62
{
63
}
64
@@ -102,8 +103,11 @@ class Task
102
103
104
void Stop()
105
- OnStop();
106
- _taskState = TaskState_Stopping;
+ if (_taskState == TaskState_Running)
107
+ {
108
+ OnStop();
109
+ _taskState = TaskState_Stopping;
110
+ }
111
112
};
113
0 commit comments