fixed warning

This commit is contained in:
orignal 2024-02-14 21:58:03 -05:00
parent dddbca6ffb
commit d8be5b8ce1

View File

@ -63,7 +63,7 @@ namespace transport
{ {
len += 2; // port len += 2; // port
boost::asio::async_read(s, boost::asio::buffer(readbuff->data (), len), boost::asio::transfer_all(), boost::asio::async_read(s, boost::asio::buffer(readbuff->data (), len), boost::asio::transfer_all(),
[readbuff, &s, handler](const boost::system::error_code& ec, std::size_t transferred) [readbuff, handler](const boost::system::error_code& ec, std::size_t transferred)
{ {
if (!ec) if (!ec)
handler (boost::system::error_code ()); // success handler (boost::system::error_code ()); // success