Fix bug in time_check, task state was not being set before calling sched_timeout
Fix bug in time_check, task state was not being set before calling sched_timeout

mangOH/mangOH,mangOH/mangOH,mangOH/mangOH,mangOH/mangOH