We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4da180e commit 9565c4eCopy full SHA for 9565c4e
source/loaders/node_loader/source/node_loader_impl.cpp
@@ -608,6 +608,9 @@ struct loader_impl_threadsafe_async_type
608
uv_async_t async_handle;
609
bool initialized;
610
611
+ loader_impl_threadsafe_async_type() :
612
+ initialized(false) {}
613
+
614
int initialize(loader_impl_node node_impl, void (*async_cb)(uv_async_t *))
615
{
616
int result = uv_async_init(node_impl->thread_loop, &async_handle, async_cb);
@@ -638,10 +641,7 @@ struct loader_impl_threadsafe_async_type
638
641
639
642
handle_cast.async = &async_handle;
640
643
- if (uv_is_active(handle_cast.handle))
- {
- uv_close(handle_cast.handle, close_cb);
644
- }
+ uv_close(handle_cast.handle, close_cb);
645
}
646
647
};
0 commit comments