Skip to content

Commit

Permalink
add missing captures
Browse files Browse the repository at this point in the history
  • Loading branch information
daantimmer committed Jan 8, 2025
1 parent c165b8f commit ed3cf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket_send_to_operation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ bool cppcoro::net::socket_send_to_operation_impl::try_start(
sockaddr_storage destinationAddress = {0};
const socklen_t destinationLength = detail::ip_endpoint_to_sockaddr(
m_destination, std::ref(destinationAddress));
operation.m_completeFunc = [operation, this]() {
operation.m_completeFunc = [operation, destinationAddress, destinationLength, this]() {
int res = sendto(
m_socket.native_handle(), m_buffer, m_byteCount, 0,
reinterpret_cast<const sockaddr*>(&destinationAddress),
Expand Down

0 comments on commit ed3cf25

Please sign in to comment.