Skip to content

@indutny /1.diff secret

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
diff --git a/src/unix/core.c b/src/unix/core.c
index a843044..f68a564 100644
--- a/src/unix/core.c
+++ b/src/unix/core.c
@@ -299,11 +299,12 @@ int uv_run(uv_loop_t* loop, uv_run_mode mode) {
uv__run_timers(loop);
}
- r = uv__loop_alive(loop);
UV_TICK_STOP(loop, mode);
if (mode & (UV_RUN_ONCE | UV_RUN_NOWAIT))
break;
+
+ r = uv__loop_alive(loop);
}
/* The if statement lets gcc compile it to a conditional store. Avoids
diff --git a/src/win/core.c b/src/win/core.c
index 7e3395b..22584a1 100644
--- a/src/win/core.c
+++ b/src/win/core.c
@@ -368,9 +368,10 @@ int uv_run(uv_loop_t *loop, uv_run_mode mode) {
uv_process_timers(loop);
}
- r = uv__loop_alive(loop);
if (mode & (UV_RUN_ONCE | UV_RUN_NOWAIT))
break;
+
+ r = uv__loop_alive(loop);
}
/* The if statement lets the compiler compile it to a conditional store.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.