Skip to content

Commit 30dacb4

Browse files
committed
Checking for async ref.
1 parent c25e6ed commit 30dacb4

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
@@ -638,7 +638,10 @@ struct loader_impl_threadsafe_async_type
638638

639639
handle_cast.async = &async_handle;
640640

641-
uv_close(handle_cast.handle, close_cb);
641+
if (uv_is_active(handle_cast.handle))
642+
{
643+
uv_close(handle_cast.handle, close_cb);
644+
}
642645
}
643646
}
644647
};

0 commit comments

Comments
 (0)