diff --git a/sched/nanosleep.c b/sched/nanosleep.c index 5e3bb64fee8..c63ccf22fec 100644 --- a/sched/nanosleep.c +++ b/sched/nanosleep.c @@ -172,7 +172,7 @@ int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp) if (errval == EAGAIN) { /* The timeout "error" is the normal, successful result */ - + irqrestore(flags); return OK; }