src: add overlooked handle to cleanup
The `Environment::destroy_ids_timer_handle` should be cleaned up by `Environment::CleanupHandles()`. Fix that by adding it to the list. This partially fixes a cctest. Ref: https://github.com/nodejs/node/issues/14206 PR-URL: https://github.com/nodejs/node/pull/14749 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
parent
97c43940c8
commit
b559e66252
@ -76,6 +76,10 @@ void Environment::Start(int argc,
|
||||
reinterpret_cast<uv_handle_t*>(&idle_check_handle_),
|
||||
close_and_finish,
|
||||
nullptr);
|
||||
RegisterHandleCleanup(
|
||||
reinterpret_cast<uv_handle_t*>(&destroy_ids_timer_handle_),
|
||||
close_and_finish,
|
||||
nullptr);
|
||||
|
||||
if (start_profiler_idle_notifier) {
|
||||
StartProfilerIdleNotifier();
|
||||
|
Loading…
x
Reference in New Issue
Block a user