I created `uv__backend_timeout` to be used internally for this reason, then forgot to use it, resulting in flaky tests and excessive trips around the uv_run loop. Fix #3472
This commit is contained in:
parent
3b2c25d223
commit
cc7dbaa3a1
@ -385,7 +385,7 @@ int uv_run(uv_loop_t* loop, uv_run_mode mode) {
|
|||||||
|
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
if ((mode == UV_RUN_ONCE && !ran_pending) || mode == UV_RUN_DEFAULT)
|
if ((mode == UV_RUN_ONCE && !ran_pending) || mode == UV_RUN_DEFAULT)
|
||||||
timeout = uv_backend_timeout(loop);
|
timeout = uv__backend_timeout(loop);
|
||||||
|
|
||||||
uv__io_poll(loop, timeout);
|
uv__io_poll(loop, timeout);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user