Fix error on starting task to continue if it has been canceled
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
void Task::Start()
|
void Task::Start()
|
||||||
{
|
{
|
||||||
ASSERT(GetState() == TaskState::Created);
|
if (_state != TaskState::Created)
|
||||||
|
return;
|
||||||
|
|
||||||
OnStart();
|
OnStart();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user