setTask improvement

When we use the setTask method to modify the task status the task will
be immediately executed on the next timer overflow (not when in PAUSED
state). With this correction, when you change the status of the tasks
they will be executed only when scheduled...