summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/sched/nanosleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/nanosleep.c b/nuttx/sched/nanosleep.c
index 5e3bb64fe..c63ccf22f 100644
--- a/nuttx/sched/nanosleep.c
+++ b/nuttx/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;
}