diff --git a/deps/uv/src/unix/core.c b/deps/uv/src/unix/core.c index 71e9c525c4a77b8..66f09cb2804bb09 100644 --- a/deps/uv/src/unix/core.c +++ b/deps/uv/src/unix/core.c @@ -398,19 +398,6 @@ int uv_run(uv_loop_t* loop, uv_run_mode mode) { uv__run_check(loop); uv__run_closing_handles(loop); - if (mode == UV_RUN_ONCE) { - /* UV_RUN_ONCE implies forward progress: at least one callback must have - * been invoked when it returns. uv__io_poll() can return without doing - * I/O (meaning: no callbacks) when its timeout expires - which means we - * have pending timers that satisfy the forward progress constraint. - * - * UV_RUN_NOWAIT makes no guarantees about progress so it's omitted from - * the check. - */ - uv__update_time(loop); - uv__run_timers(loop); - } - r = uv__loop_alive(loop); if (mode == UV_RUN_ONCE || mode == UV_RUN_NOWAIT) break; diff --git a/src/api/embed_helpers.cc b/src/api/embed_helpers.cc index ef56887abed7230..ba5f621b4d1b48a 100644 --- a/src/api/embed_helpers.cc +++ b/src/api/embed_helpers.cc @@ -42,7 +42,7 @@ bool SpinEventLoopWithoutCleanup(Environment* env, if (env->is_stopping()) return false; int loop; do { - loop = uv_run(env->event_loop(), UV_RUN_NOWAIT); + loop = uv_run(env->event_loop(), UV_RUN_ONCE); } while (loop && condition() && !env->is_stopping()); if (env->is_stopping()) return false;