Skip to content

Commit 9565c4e

Browse files
committed
Solve another issue.
1 parent 4da180e commit 9565c4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/loaders/node_loader/source/node_loader_impl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,9 @@ struct loader_impl_threadsafe_async_type
608608
uv_async_t async_handle;
609609
bool initialized;
610610

611+
loader_impl_threadsafe_async_type() :
612+
initialized(false) {}
613+
611614
int initialize(loader_impl_node node_impl, void (*async_cb)(uv_async_t *))
612615
{
613616
int result = uv_async_init(node_impl->thread_loop, &async_handle, async_cb);
@@ -638,10 +641,7 @@ struct loader_impl_threadsafe_async_type
638641

639642
handle_cast.async = &async_handle;
640643

641-
if (uv_is_active(handle_cast.handle))
642-
{
643-
uv_close(handle_cast.handle, close_cb);
644-
}
644+
uv_close(handle_cast.handle, close_cb);
645645
}
646646
}
647647
};

0 commit comments

Comments
 (0)