Task cannot be scheduled and deactivated in the same time.

This commit is contained in:
Silviu Caragea 2018-03-23 10:05:58 +02:00
parent 24de8d624f
commit 23aee5ed5b

View File

@ -131,7 +131,7 @@ void BackgroundSchedulePool::TaskInfo::execute()
/// on the queue. We don't call the function again here because this way all tasks /// on the queue. We don't call the function again here because this way all tasks
/// will have their chance to execute /// will have their chance to execute
if(scheduled && !deactivated) if(scheduled)
pool.queue.enqueueNotification(new TaskNotification(shared_from_this())); pool.queue.enqueueNotification(new TaskNotification(shared_from_this()));
} }