From 395d93daba8d2ef138eb2157a3efec2904f53348 Mon Sep 17 00:00:00 2001 From: cryptocode Date: Wed, 30 Jan 2019 09:58:03 +0100 Subject: [PATCH] Fix windows tests for ipc --- nano/node/ipc.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nano/node/ipc.cpp b/nano/node/ipc.cpp index ae0af5868a..1e0d008987 100644 --- a/nano/node/ipc.cpp +++ b/nano/node/ipc.cpp @@ -206,12 +206,12 @@ class session : public socket_base, public std::enable_shared_from_thisresponse_body = ostream.str (); - uint32_t size_response = boost::endian::native_to_big (static_cast (response_body.size ())); + uint32_t size_response = boost::endian::native_to_big (static_cast (this_l->response_body.size ())); std::vector bufs = { boost::asio::buffer (&size_response, sizeof (size_response)), - boost::asio::buffer (response_body) + boost::asio::buffer (this_l->response_body) }; this_l->timer_start (std::chrono::seconds (this_l->config_transport.io_timeout)); @@ -304,6 +304,9 @@ class session : public socket_base, public std::enable_shared_from_this buffer;