Skip to content
Snippets Groups Projects
Commit c138b21c authored by Damien George's avatar Damien George
Browse files

unix: Use mp_handle_pending() in time.sleep().

parent 6e74d24f
Branches
Tags
No related merge requests found
...@@ -108,9 +108,7 @@ STATIC mp_obj_t mod_time_sleep(mp_obj_t arg) { ...@@ -108,9 +108,7 @@ STATIC mp_obj_t mod_time_sleep(mp_obj_t arg) {
if (res != -1 || errno != EINTR) { if (res != -1 || errno != EINTR) {
break; break;
} }
if (MP_STATE_VM(mp_pending_exception) != MP_OBJ_NULL) { mp_handle_pending();
return mp_const_none;
}
//printf("select: EINTR: %ld:%ld\n", tv.tv_sec, tv.tv_usec); //printf("select: EINTR: %ld:%ld\n", tv.tv_sec, tv.tv_usec);
#else #else
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment