Carefully review what each function does in our TickEventLoop implementation and if we correctly set the more variable:
|
inline static bool TickEventLoop(Environment & env) { |
|
bool more; |
|
uv_run(env.event_loop(), UV_RUN_ONCE); |
|
|
|
v8_platform.DrainVMTasks(); |
|
|
|
more = uv_loop_alive(env.event_loop()); |
|
if (more) |
|
return more; |
|
|
|
EmitBeforeExit(&env); |
|
|
|
// Emit `beforeExit` if the loop became alive either after emitting |
|
// event, or after running some callbacks. |
|
more = uv_loop_alive(env.event_loop()); |
|
return more; |
|
} |
Carefully review what each function does in our
TickEventLoopimplementation and if we correctly set themorevariable:node/src/node.cc
Lines 4802 to 4818 in 2fae0db