Skip to content

Commit daca757

Browse files
committed
Restore async handle behaviour.
1 parent 6a6aebc commit daca757

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/loaders/node_loader/source/node_loader_impl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4944,13 +4944,16 @@ int64_t node_loader_impl_async_handles_count(loader_impl_node node_impl)
49444944
int64_t node_loader_impl_user_async_handles_count(loader_impl_node node_impl)
49454945
{
49464946
int64_t active_handles = node_loader_impl_async_handles_count(node_impl);
4947+
4948+
/*
49474949
int64_t closing =
49484950
#if defined(WIN32) || defined(_WIN32)
49494951
(node_impl->thread_loop->endgame_handles != NULL)
49504952
#else
49514953
(node_impl->thread_loop->closing_handles != NULL)
49524954
#endif
49534955
;
4956+
*/
49544957

49554958
/* TODO: Remove async handle logging temporally */
49564959
/*
@@ -4965,7 +4968,7 @@ int64_t node_loader_impl_user_async_handles_count(loader_impl_node node_impl)
49654968
#endif
49664969
*/
49674970

4968-
return active_handles - node_impl->base_active_handles - node_impl->extra_active_handles.load() + (int64_t)(node_impl->thread_loop->active_reqs.count) + closing;
4971+
return active_handles - node_impl->base_active_handles - node_impl->extra_active_handles.load() + (int64_t)(node_impl->thread_loop->active_reqs.count) /*+ closing*/;
49694972
}
49704973

49714974
void node_loader_impl_print_handles(loader_impl_node node_impl)

0 commit comments

Comments
 (0)